Jump to content

Jay314

Active Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Jay314

  1. 12 hours ago, Fang_Shadow said:

    no i am saying to choose one or the other, but only with one attack mode (ethernet OR storage; not both)

    Thank you @Fang_Shadow, this looks like it fixed the problem, albeit with slightly limited capabilities.

    I now have an IP on my eth1 interface. Now I just need to configure the payload to throw me a shell, this has been a huge help!

    • Upvote 1
  2. On 6/18/2017 at 11:44 PM, Fang_Shadow said:

    Remember that linux uses both RNDIS_ETHERNET and ECM_ETHERNET, since it wants to be compatible with both windows and unix(mac). Has the usage of both storage and another attack mode work at the same time before on linux, or could be something different.

    Are you saying I should set my payload with RNDIS and ECM attack modes?

  3. On 6/19/2017 at 5:55 PM, Sebkinne said:

    Yup, that's it. I have it working but it's a bit slow. There are some tricks to speed it up though, so once I finish that, I'll push out a new firmware. 

    That sounds great, since you seem pretty tied into the development, where would you recommend I look to find out more on the networking aspect of this project? There doesn't seem to be much documentation on the bash bunny.

  4. @Lord_KamOS

    When mounting /dev/sdb (the BB) to /mnt/external/, the full path to the Payload is:

    /mnt/external/payloads/switch1/payload.txt

    The contents of the payload reads:

    #!/bin/bash
    LED G
    ATTACKMODE STORAGE ECM_ETHERNET

    ifconfig -a entry for the new interface reads:

    eth1      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

     

    • Upvote 1
  5. ===========================SOLUTION==============================

    Generate the following payload without STORAGE in the attackmode.

    #!/bin/bash
    LED G
    ATTACKMODE ECM_ETHERNET

    Thanks to Fang_Shadow, I've learned that using storage in concert ECM_ETHERNET prevents the system from pulling an IP (for what reason I still don't understand - I'm guessing it's just a bug).

    I have had some issues with SSH but according to ifconfig (on local system) I see the interface is up and nmap scans show port 22 is open on the new IP, I'll update this post if anything changes.

    ===================================================================

    Endgoal: I want to ssh from host machine into my BashBunny, then pivot from my BashBunny to a remote cloud hosted webserver, and write a testfile to that server.
    Host System Used: Debian Linux
    Crux: I am unable to acquire an ip address for my BashBunny using bb.sh

    Attempts:
    1. I tried to perform these actions from Arming Mode using the serial connection, however I learned that I am not able to share my network connection from serial mode and that Arming Mode only allows: Serial and Storage

    2. I attempted to run the default payload in order to gain network connectivity:

    #!/bin/bash
    LED G
    ATTACKMODE ECM_ETHERNET STORAGE

    My understanding of this code is that it will indicate it is ready when there is a solid green light (LED G) and that it will facilitate Ethernet connectivity and Storage (Last line), it is also my understanding that this initializes a new network interface that can be seen with the commands "ip addr" or "ifconfig -a".

    However this new interface does not appear to be configured yet and attempting to run the command

    ssh root@172.16.64.1

    does not result in the expected login prompt and eventually times out.

    3. I've also attempted to run the bb.sh in order to share my hosts network connection, despite not being able to ssh into 172.16.64.1 IP. The script appears to work until you attempt to connect with it, and then it just hangs.

    Any ideas on how to ssh into the BashBunny?

     

    Thanks, Jay
     

    • Upvote 1
×
×
  • Create New...