Jump to content

xhico

Recommended Posts

Hallo!!

This is my payload, just a python smb server thats points to the switch folder.

PROBLEM: it creates the share, but i cant access the files, because the /root/udisk is not mounted.

If i boot the bunny in RNDIS, goto the console and do "udisk mount" i can access the files, but I cant mount udisk from inside a payload

Any ideas? Is there anything I'm missing.

Thx, and keep on developing!! :)

#!/bin/bash

LED SETUP
GET SWITCH_POSITION
SWITCHDIR=/root/udisk/payloads/$SWITCH_POSITION
LOOTDIR=$SWITCHDIR/loot

LED STAGE1
ATTACKMODE RNDIS_ETHERNET
udisk mount
python /tools/impacket/examples/smbserver.py e $SWITCHDIR &

LED FINISH

 

Link to comment
Share on other sites

I already found my mistake...

The bunny already mounts by default... i cant just access it..

I have to copy to a tmp folder, and there the files are in the share

mkdir -p /root/teste
cp $SWITCHDIR/* /root/teste
python /tools/impacket/examples/smbserver.py e /root/teste &

 

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.

  • Recently Browsing   0 members

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