Skip to content

Instantly share code, notes, and snippets.


Yegor Kazantsev saintbyte

  • Ural
Block or report user

Report or block saintbyte

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
chrisiaut / parse_austria.php
Created Aug 21, 2018
Parsing ip data from a file
View parse_austria.php
$infile = 'austria.csv';
$outfile = 'austria.ips';
$fp = fopen($outfile,'w');
$handle = fopen($infile, "r");
if ($handle)
while (($line = fgets($handle)) !== false) {
$line = trim($line);
Wack0 / upwned247.php
Last active Jan 23, 2019
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others IoT webcams : remote code exec: reverse shell PoC. (works only in qemu usermode)
View upwned247.php
Updated version, 2016-12-02: fixed shellcode so it *actually* works on QEMU
usermode emulation (seems I pushed an old version), and removed debug output.
If anyone wants to fix this, go ahead (no pun intended).
However, I don't have a vulnerable product and am unwilling to acquire one.
archon810 /
Last active Oct 10, 2019
Fake Virus Shield AV
public final class BuildConfig {
public static final String BUILD_TYPE = "debug";
public static final boolean DEBUG;
public static final String FLAVOR = "";
public static final String PACKAGE_NAME = "";
public static final int VERSION_CODE = 4;
public static final String VERSION_NAME = "2.2";
View html-dicomment.sublime-snippet
<!-- begin $1 -->
<div class="$1">
<!-- end $1 -->
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
scaryguy /
Last active Oct 15, 2019
How to change PRIMARY KEY of an existing PostgreSQL table?
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of  your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;
View Simple DNS server (UDP and TCP) in Python using
# coding=utf-8
import datetime
import sys
import time
import threading
import traceback
import SocketServer
tomasperezv / gist:5175824
Last active Jun 12, 2018
Communication between multiple tabs, using local storage changes
View gist:5175824
// User has 2 tabs open: Page 1 and Page 2, both in the same domain
// , subdomain and protocotol
// Page1:
var data = {
a: 5,
// Local storage won't be triggered unless the value is different,
// so we add a random identifier.
id: Math.floor((Math.random()*1000)+1)
guillaumepiot / PYTHON - Convert URL in text to anchor tags (links)
Created Jan 15, 2013
PYTHON - Convert URL in text to anchor tags (links)
View PYTHON - Convert URL in text to anchor tags (links)
madeye /
Created Apr 4, 2012
Set proxy for Android Webview
package me.madeye;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.apache.http.HttpHost;
import android.content.Context;
You can’t perform that action at this time.