Skip to content

Instantly share code, notes, and snippets.

@erayarslan
erayarslan / cb_fix.sh
Created July 17, 2014 10:35
CrunchBang 9B7C8627EDFD12C1
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
@erayarslan
erayarslan / shellcode_with_mman.c
Created July 17, 2014 10:36
Run Your Shellcode with mman on Linux
// ( segmentation fault – core dumped problem solver )
#include <stdio.h>
#include <sys/mman.h>
#include <string.h>
#include <stdlib.h>
int (*shellcode)();
char code[] = "\xeb\x19\x31\xc0\x31\xdb\x31\xd2\x31\xc9\xb0\x04\xb3\x01\x59\xb2\x05\xcd"\
#!/usr/bin/env python
#coding: utf8
import os
if os.name=="posix":
os.system("clear")
if os.name in ("nt","dos","ce"):
os.system("cls")
class colors:
head = '\033[95m'
@erayarslan
erayarslan / hash_gen.sh
Created July 17, 2014 10:37
linux console hash gen
echo -n "text" | md5sum
echo -n "text" | sha512sum
echo -n "text" | sha256sum
echo -n "text" | sha1sum
echo -n "text" | base64
#include <windows.h>
#define hide ShowWindow(GetConsoleWindow(),SW_HIDE);
#define fork while(0x01) { WinExec(argv[0],SW_HIDE); }
void main(int argc, char* argv[]) { hide;fork;}
@erayarslan
erayarslan / fetch_url.ps1
Created July 17, 2014 10:42
Fetch URL Content
$web = New-Object System.Net.WebClient
$icerik = $web.DownloadString("http://www.enderunix.org/docs/bof.txt")
$icerik
/**
* @fikir Burak ONGAN
* @tarih 02.01.2013
* @yazar Eray ARSLAN
*/
#include <iostream>
#include <cstdlib>
#include <conio.h>
#include <time.h>
@erayarslan
erayarslan / yilan_medition.cpp
Created July 17, 2014 10:43
Yılan mEdition
/**
* @fikir Burak ONGAN
* @tarih 02.01.2013
* @yazar Eray ARSLAN
*
* @surum mEdition - Musa Edition
* @yeni ESC'ye basinca oyunun durmasi ve devam etmesi
*/
#include <iostream>
/*
* @author Eray Arslan
* @date 08.11.2012
* @mail relf-@hotmail.com
*/
#include <iostream>
using namespace std;
@erayarslan
erayarslan / form_post.py
Created July 17, 2014 10:44
mechanize Form Post
import mechanize
browser = mechanize.Browser()
browser.set_handle_robots(False)
browser.open('http://www.erayarslan.com/notmine')
browser.select_form(nr=0)
browser.form['message'] = 'ohhh luuu'
browser.submit()