Skip to content

Instantly share code, notes, and snippets.

Gokberk Yaltirakli gkbrk

Block or report user

Report or block gkbrk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gkbrk
gkbrk / slowloris.py
Created Apr 4, 2015
Slowloris implementation in Python.
View slowloris.py
import socket
import random
import time
import sys
log_level = 2
def log(text, level=1):
if log_level >= level:
print(text)
@gkbrk
gkbrk / titan-conquest-bot.py
Created Aug 1, 2019
Game bot for Titan Conquest
View titan-conquest-bot.py
#!/usr/bin/env python3
import requests
import re
from bs4 import BeautifulSoup
UA = "Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0"
USERNAME = "usernameHere"
PASSWORD = "passwordHere"
ROOT = "https://titanconquest.com/"
WORKER = f"{ROOT}worker.php"
@gkbrk
gkbrk / lolcat.asm
Created Jul 27, 2016
Lolcat clone in x64 assembly
View lolcat.asm
section .data
char_buffer db 0
section .text
global _start
_start:
mov r12, 0
.loop:
call read_char
@gkbrk
gkbrk / whois.rs
Created Dec 5, 2015
Rust whois client
View whois.rs
use std::io::prelude::*;
use std::net::TcpStream;
use std::io::BufReader;
use std::env;
fn get_tld_server(tld: &str) -> Option<String> {
let mut stream = TcpStream::connect("whois.iana.org:43").unwrap();
stream.write_all(format!("{}\n", tld).as_bytes()).unwrap(); //Send the tld
let reader = BufReader::new(stream);
@gkbrk
gkbrk / lobsters-mastodon.lisp
Last active Apr 4, 2019
Common lisp Mastodon bot
View lobsters-mastodon.lisp
(ql:quickload :drakma)
(ql:quickload :cl-json)
(ql:quickload :plump)
(ql:quickload :babel)
(ql:quickload :tooter)
(ql:quickload :split-sequence)
(defvar *feed-path* "https://lobste.rs/rss")
(setf drakma:*drakma-default-external-format* :UTF-8)
@gkbrk
gkbrk / Cargo.toml
Last active Mar 4, 2019
Asynchronous server example in Rust
View Cargo.toml
[package]
name = "rust-async-qotd"
version = "0.1.0"
authors = ["Gökberk Yaltıraklı <webdosusb@gmail.com>"]
[dependencies]
tokio = { git = "https://github.com/tokio-rs/tokio" }
rand = "0.3"
@gkbrk
gkbrk / main.rs
Created Jan 8, 2016
Simple idle clicker game in Rust
View main.rs
#[macro_use] extern crate conrod;
extern crate find_folder;
extern crate piston_window;
use conrod::{Labelable, Positionable, Sizeable, Colorable, Theme, Ui, Widget};
use conrod::color;
use piston_window::{EventLoop, Glyphs, PistonWindow, UpdateEvent, WindowSettings};
struct GameState {
coins: u64,
View gklang.py
import io
import string
import sys
class gkexpr(list):
def a(self):
pass
def lex(stream):
while True:
@gkbrk
gkbrk / server.py
Created Jan 21, 2018
A SOCKS-over-HTTP tunnel for evading censorship/network filters
View server.py
#!/usr/bin/env python3
import socket
import threading
import random
import time
class EvadereSocket:
def __init__(self):
self.conn = None
self.last_activity = time.time()
@gkbrk
gkbrk / scanner.py
Created Mar 10, 2015
Simple port scanner in Python.
View scanner.py
import socket
import sys
import threading
import queue
import time
common_ports = {
"21": "FTP",
"22": "SSH",
"23": "Telnet",
You can’t perform that action at this time.