Jump to content

frankace

Active Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by frankace

  1. It would get to white LED and then go red.  I was able to get to it via Putty, but it was not able to get out to the internet.  I don't think it was your payload.  It was something on my end

  2. @Draxiom I was not able to get your payload to work properly.  I am sure it is something i missed.  Your suggestion did lead me to the post from Just_a_User.  I downloaded to the zip from his post, extracted the bunny_helpers.sh and copied to my bash bunny. 

    Thanks for the help

  3. I did notice the bunny_helpers is missing this bit of code:

    check_switch() {
    switch1=`cat /sys/class/gpio_sw/PA8/data`
    switch2=`cat /sys/class/gpio_sw/PL4/data`
    switch3=`cat /sys/class/gpio_sw/PL3/data`
    echo "--- switch1 = $switch1, switch2 = $switch2, switch3 = $switch3"
    if [ "x$switch1" = "x0" ] && [ "x$switch2" = "x1" ] && [ "x$switch3" = "x1" ]; then
    SWITCH_POSITION="switch1"
    elif [ "x$switch1" = "x1" ] && [ "x$switch2" = "x0" ] && [ "x$switch3" = "x1" ]; then
    SWITCH_POSITION="switch2"
    elif [ "x$switch1" = "x1" ] && [ "x$switch2" = "x1" ] && [ "x$switch3" = "x0" ]; then
    SWITCH_POSITION="switch3"
    else
    SWITCH_POSITION="invalid"
    fi
    }
     
    check_switch

    export SWITCH_POSITION

    Is it as simple as editing the file and adding the missing code?

  4. When using the following command 

    ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\a.cmd')"

    It errors out

    . : The term 'E:\payloads\\a.cmd' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:2
    + .((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\a.cmd' ...
    +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (E:\payloads\\a.cmd:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    It is not grabbing the variable for $SWITCH_POSITION

    What am I missing?

     

    Thanks

×
×
  • Create New...