Skip to content

Instantly share code, notes, and snippets.

View saintbyte's full-sized avatar
🌏
заапгрейдить и пропатчить

Yegor Kazantsev saintbyte

🌏
заапгрейдить и пропатчить
View GitHub Profile
@saintbyte
saintbyte / parse_austria.php
Created March 20, 2019 12:53 — forked from geek-at/parse_austria.php
Parsing ip data from a file
<?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);
<?php
// THIS FILE is in PUBLIC DOMAIN
//
// Call like this
// http://example.im/111/1.php?start1=1&end1=10&start2=31&end2=40
// http://example.im/111/1.php?start1=11&end1=20&start2=41&end2=50
// http://example.im/111/1.php?start1=21&end1=30&start2=51&end2=60
//
sleep(rand (0, 2.5));
$START1=intval($_GET['start1']);
pragma solidity ^0.4.24;
contract Test3
{
address public owner;
mapping(address => uint) private holders;
address[] holders_addrs;
uint256 totalWei;
function Ownable() public {
owner = msg.sender;
pragma solidity ^0.4.19;
contract Test2 {
function transferInEqualParts(uint256 summaryAmount, address [] recipients) public {
if ( recipients.length > 0) {
uint256 oneAmount = summaryAmount / recipients.length;
for(uint i = 0; i < recipients.length; i++){
recipients[i].transfer(oneAmount);
}
pragma solidity ^0.4.19;
contract Test1 {
bytes32 originalHash;
constructor() public {
originalHash = keccak256(abi.encode(123));
}
function hash(uint originalValue) public view returns (bool) {
@saintbyte
saintbyte / upwned247.php
Created December 2, 2016 01:44 — forked from Wack0/upwned247.php
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others IoT webcams : remote code exec: reverse shell PoC. (works only in qemu usermode)
<?php
/*
NB: THIS PoC ONLY WORKS IN QEMU USERMODE EMULATION!
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.
-------------------------
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others
remote code exec: reverse shell PoC.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import urllib
import SimpleHTTPServer
import SocketServer
import sys
import re
import optparse
from bs4 import BeautifulSoup
@saintbyte
saintbyte / Polyline python fix
Created March 9, 2016 20:33
Polyline python fix
wmd`iBmz}~fAfiH~m[`@h\avCx}DebPfyKinRjsIaeQz~GsiR|rJcr@~z@c_@pd@}m@rx@g}H~zQgsHlgVetG`tUaoGr}TigHnxTyjGjnQ}cMphSoyPnoEc}KjmCq{LheB{dYtc@udOc`@kUvKqoNrnFqcOdyEyc@xnFyt@slA}wA}GmoOq}EiqB}y@wnBl_Ami@d]q{AldAmpF|eEagA|jBqbM_jJ}dNniQmi@lnAegGz|Mog@fy@gtLvvV}mAhcDwnKj`Zc~EzoNcvElbNynKxh[imEx}OwxCvsPwxBhaM_pG_~DorNolNsyIivIcsKe|C{fAhiGc~Kc{Ie|@yn@
------------------
[(555.93708, 377.48151), (555.88936, 377.33575), (555.88919, 377.33106), (555.91336, 377.30053), (556.00091, 377.23489), (556.10064, 377.18043), (556.19377, 377.13437), (556.29275, 377.07486), (556.30093, 377.06526), (556.30607, 377.05925), (556.31358, 377.05003), (556.3645, 376.95339), (556.41382, 376.83428), (556.45817, 376.71827), (556.5017, 376.60585), (556.54911, 376.49425), (556.59196, 376.39963), (556.66443, 376.2957), (556.75571, 376.26234), (556.82197, 376.23956), (556.8931, 376.22319), (557.02716, 376.21732), (557.10999, 376.22262), (557.11357, 376.22058), (557.19302, 376.18224), (557.27567, 376.14733), (557.28156, 376.10896), (557.29017, 376.1