Open bodri82 opened 5 years ago
youll need to use ssh. there is no file transfer option via the web client.
i already run ssh i mean when i got over c2 agent and have a shell
Oh my god im dumb. sorry, I didnt read the question apparently. My recommendation would maybe try using the disk creator script and store files there using xcopy, but there must be a better solution. And kudos to you, I have only got the reverse shell working once for me.
An example script which consumes the correct environment variables set by different trigger actions could be found here: https://github.com/mame82/P4wnP1_aloa/blob/master/dist/scripts/trigger-aware.sh
What's left to do is to modify the script to start nmap, place it in a proper TriggerAction for granted DHCP leases, enable CDC ECM (for Mac/Linux) and RNDIS (for Windows).
Once an IP is assigned to the target host's USB interface, the TriggerAction will fire.
If you want to do follow up actions with P4wnP1 from your bash script, the p4wnp1_cli
command could be used (f.e. to start a HID script, let the LED blink or whatever you like)
Here is another bash script, showing how to alter P4wnP1 runtime settings using P4wnP1_cli
instead of using the web frontend.
https://github.com/mame82/P4wnP1_aloa/blob/master/dist/scripts/servicestart.sh
The cli client is very powerful, I highly suggest to use its built in help.
hey i might be stupid but how do i transfer files via wifi covert channel ? I am unable to transfer any file to pi