Skip to content

Instantly share code, notes, and snippets.

View chenshaoju's full-sized avatar
🏠
Working from home

Chen Shaoju chenshaoju

🏠
Working from home
View GitHub Profile
@chenshaoju
chenshaoju / Lock22H2.reg
Last active May 15, 2023 13:23
Lock Windows 10 at 22H2 version
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\PolicyState]
"TargetProductVersion"="Windows 10"
"TargetReleaseVersion"="22H2"
@chenshaoju
chenshaoju / ck-client.json
Created January 13, 2023 02:21
shadowsocks-local (ss-local) configure example
{
"Transport": "direct",
"ProxyMethod": "shadowsocks",
"EncryptionMethod": "plain",
"UID": "CHANGE_ME",
"PublicKey": "CHANGE_ME",
"ServerName": "www.amazon.com",
"AlternativeNames": ["www.apple.com", "www.cambridge.org", "www.linkedin.com", "www.microsoft.com", "www.walmart.com", "www.bestbuy.com", "www.ebay.com", "www.samsung.com", "store.steampowered.com", "www.cdc.gov", "www.adobe.com", "www.speedtest.net", "www.playstation.com", "www.sony.com", "www.ea.com", "www.calculator.net", "www.paypal.com"],
"NumConn": 6,
"BrowserSig": "chrome",
@chenshaoju
chenshaoju / demo.htm
Created October 19, 2022 06:41
Web Matrix demo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Matrix</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
@chenshaoju
chenshaoju / output.txt
Created October 11, 2022 02:07
BSOD collect
Microsoft (R) Windows Debugger Version 10.0.19041.1 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\101122-9390-01.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
************* Path validation summary **************
@chenshaoju
chenshaoju / initdb.sql
Last active August 17, 2022 13:54
URL Jumping (PHP+MySQL)
CREATE TABLE IF NOT EXISTS `shortlinks` (
`id` int(11) DEFAULT NULL,
`url` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DELETE FROM `shortlinks`;
INSERT INTO `shortlinks` (`id`, `url`) VALUES
(0, 'https://www.google.com');
@chenshaoju
chenshaoju / sunlogin.sh
Created March 16, 2022 08:23
auto enable/start sunlogin services and running, disable/stop services when exit sunlogin.
#!/usr/bin/sudo bash
#
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
systemctl enable runsunloginclient.service
systemctl start runsunloginclient.service
# change USERNAME to your current non-root username
sudo -u USERNAME /usr/local/sunlogin/bin/sunloginclient &
@chenshaoju
chenshaoju / Disable_Windows_Update_driver_update.reg
Last active January 15, 2022 08:22
Disable/Enable Windows Update driver update registry files.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"ExcludeWUDriversInQualityUpdate"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]
"ExcludeWUDriversInQualityUpdate"=dword:00000001
@chenshaoju
chenshaoju / gist:5a361138d55630d2bcef3581139fb17e
Created April 11, 2021 08:01
Check public ip, if changed then send email by using ssmtp
#!/bin/bash
#
LastIP=`cat /root/ip1`
WanIP=`curl ifconfig.me`
if [ "$LastIP" != "$WanIP" ]
then
echo "$WanIP" > /root/ip1
echo -e "Subject: this is the subject\n\n$WanIP" | ssmtp [email protected]
@chenshaoju
chenshaoju / output.txt
Created August 12, 2020 16:47
Windows 10 BSOD
Microsoft (R) Windows Debugger Version 10.0.17763.132 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Windows\MEMORY.DMP]
Kernel Bitmap Dump File: Kernel address space is available, User address space may not be available.
************* Path validation summary **************
@chenshaoju
chenshaoju / email.eml
Created August 11, 2020 03:42
password leak blackmail (20200811)
Delivered-To: [email protected]
Received: by 2002:a4f:4191:0:0:0:0:0 with SMTP id o139csp4638945iva;
Mon, 10 Aug 2020 12:09:31 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJySk29CmoFiCkUV3Ku+2q/O5TdNM/2yat7grPl/EGLFaZAxMgTcWq0/ySXJARCGexZA11Rr
X-Received: by 2002:a62:7acb:: with SMTP id v194mr2395497pfc.302.1597086571543;
Mon, 10 Aug 2020 12:09:31 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1597086571; cv=none;
d=google.com; s=arc-20160816;
b=JC7kufTWC8spY2pUn196q19HNnst3vhpH5WmTKDSdGiRLP6NbzgkUTzy5rsAync1iz
Jp9rmPleyHmKbP3HQogRR/OmgmieYV+KyLCfCDc3Rf7b410jtvz8XKx1AwTcmQSoBuQr