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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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