0

Ideally, I am trying to gain root access to a Bliss OS (version 11.14) Virtualbox machine I have so that I can view saved PCAP files. Sadly, to get to the directory I have to be root. The only option seems to be installing a fake root module (https://www.crisisshelter.org/get-root-access-in-termux-without-root-fakeroot/).

However, this and several other things I have tried to do with Termux lead up to running apt-update and apt-upgrade. However, I keep seeming to get repository issues.

$ apt update && apt upgrade
Get:1 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Get:2 https://grimler.se/game-packages-24 games InRelease [9347 B]
Err:1 https://grimler.se/termux-packages-24 stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO PUBKEY B0076E4908716168
Get:3 https://grimler.se/science-packages-24 science InRelease [9360 B]
Err:2 https://grimler.se/game-packages-24 games InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BO076E4908716168
Err:3 https://grimler.se/science-packages-24 science InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490871616B
Reading package lists... Done
W: GPG error: https://grimler.se/termux-packages-24 stable InRelease: The following signatures couldn't be verified because the public key is not available: NO PUBKEY B0076E490871616B
E: The repository 'https://grimler.se/termux-packages-24 stable InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now. N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
W: GPG error: https://grimler.se/game-packages-24 games InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/game-packages-24 games InRelease' is not signed. N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
W: GPG error: https://grimler.se/science-packages-24 science InRelease: The following signatures couldn't be verified because the public key is not available: NO PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/science-packages-24 science InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).

Screenshot of terminal output

I can't seem to find a fix for Termux anywhere online. Does anyone have a better solution to getting root access via Termux?

UPDATE: I updated termux to a more modern version. However, I get "File has unexpected size" error when I try to run apt-get update, or when I try to install anything.

~ $ pkg install su
Checking availability of current mirror: ok
Get:1 https://packages. termux.dev/apt/termux-main stable InRelease [14.0 kB]
Get:2 https://packages. termux.dev/apt/termux-main stable/main x86_64 Packages [450 kB]
Ign:2 https://packages. termux.dev/apt/termux-main stable/main x86_64 Packages
Err:2 https://packages. termux.org/apt/termux-main stable/main x86_64 Packages
  File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
Err:2 https://packages. termux.org/apt/termux-main stable/main x86_64 Packages
  File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
Err:2 https://packages. termux.org/apt/termux-main stable/main x86_64 Packages
  File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
Fetched 14.0 kB in 1s (10.7 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages. termux.org/apt/termux-main/dists/stable/main/binary-x86_64/Packages File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Screenshot of terminal output

Does anyone know a fix for this?

13
  • I am trying to gain root access ... so that I can view saved PCAP files -- why do you need root access for this? Where (exact location) are these PCAP files saved? Are you unable to copy them to /sdcard (aka Internal Storage)?
    – Firelord
    Oct 6, 2022 at 6:50
  • You have added a repository but not it's PGP key. Use apt-key add <site-public-key.gpg> e.g. on the published key here.
    – Robert
    Oct 6, 2022 at 7:17
  • @Firelord I am attempting to view pcap information generated via csploit for a senior project im doing. It seems the only location the pcap files are saved are: /data/user/0/org.csploit.android/cache/csploit-sniff-randomnumber.pcap. The So far, I have not found a way to changed the save location in csploit, and I get a permission denied error when i try to access that exact directory. Oct 6, 2022 at 14:49
  • @Robert is site-public-key.gpg something i should already have on my system? Or is that something I have to find somewhere? Sorry, very new to this. Oct 6, 2022 at 16:45
  • If you add a repository you also have to add the matching PGP key. I have posted the link to the page where the key is linked on in my last comment.
    – Robert
    Oct 6, 2022 at 18:11

1 Answer 1

0

Your link about the fakeroot module seems to be one of these websites that are created by bots to get money using website ads.

PCAP file is just network traffic capture as a file.

If you are just interested in the network traffic being captured regardless of the file or the format, I recommend you to use HttpCanary.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .