Jump to content

Bash Bunny only showing 2 folders


JMRadio
 Share

Recommended Posts

Hello!

After plugin a SD card and mount it to the bunny...all went ok then the day after that I removed the SD card and finally wanted to test some payloads the bunny only exposes in arming mode two folders: languages and tools the rest is gone.

It's a BB M2 so I can't run any payload and the initial configuration file is gone.

So I wonder if I just simply create the folders will be enough to have it up and running again.

I don't have the default files in the exposed part of the bunny to load files, also I did spend a few of hours getting the bunny ready to use phyton3 I would not like to start all over again.

Can someone  give a hand pointing me in the right direction, for now I will just try to create the folders and see how it goes, by the way windows shows me 1.74GB of usable storage for payloads, I just did not look before I wonder if this is the right size? (might be less than the default due to the python3 installation).

 

Thanks!

JMR

Link to comment
Share on other sites

So, it's on the internal storage (udisk) that you are missing files, not on the SD card? In other words, you have removed the SD card and when you mount the Bunny in arming mode with no SD card, you only see "languages" and "tools"? I just want to make sure I understand the setup/scenario so that is absolutely clear. Something out of the ordinary must have happened, this isn't normal behavior that files and directories are just gone. If you have any reference to what should be considered as default contents of the udisk, then I can't see that there should be any problem to recreate that on the udisk. It should work. Another variant would be to run the Bunny updater, it should update/populate at least some of the directories.

Regarding remaining size of storage, it's most likely correct since you have installed things. And you, as I understand it, followed the instructions I wrote on getting Python3 onboard and those instructions mention that it will use a lot of disk space (although that counts the whole procedure, not just Python3 specifically).

Link to comment
Share on other sites

Thanks for the reply Dark_pyrro.

Probably I did something that screw things a bit. Thinking about I was doing I realize that I might caused this issue.

Yes I'm referring to the bunny storage and not the SD card.

During the installation of the  impacket-0.9.24.tar.gz file I did copy the file in the SD card formatted as EXT, after complete the installation I did try to format the SD card via bunny console ...I executed udisk reformat I think this wiped the folders on the bunny. After this I removed the SD card with the Bunny off and used the bunny next day and found only two folders.

Probably this screw things in the bunny as I'm not very familiar with it...yet.

The bunny has some default files, I assume they are mandatory but I did not have a back up..my bad here.

In some old post I read that if you execute udisk reformat the default structure will appear now I'm a bit afraid to executed again!  and I have not found more info about this.

 

If I execute the Bunny updater will restore the BB to the factory state losing all changes I have made to it (python3/impacket for example)?

 

Below fdisk output without SD card being present in the Bunny.

root@bunny:~# fdisk -l

Disk /dev/nanda: 16 MiB, 16777216 bytes, 32768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000


Disk /dev/nandb: 16 MiB, 16777216 bytes, 32768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nandc: 16 MiB, 16777216 bytes, 32768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nandd: 3.3 GiB, 3489660928 bytes, 6815744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nande: 32 MiB, 33554432 bytes, 65536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nandf: 1.8 GiB, 1879048192 bytes, 3670016 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000


Disk /dev/nandg: 736 MiB, 771751936 bytes, 1507328 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nandh: 1.3 GiB, 1342177280 bytes, 2621440 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nandi: 296 MiB, 310378496 bytes, 606208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

 

Link to comment
Share on other sites

Well I had nothing to lose and executed udisk reformat and this solved the problem, so I can confirm that this restores the Bunny to it's default folder structure : )

But, then..I have to understand what drive the SD card becomes when inserted and be more careful. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...