Skip to content

Instantly share code, notes, and snippets.

View iam-py-test's full-sized avatar

iam-py-test

View GitHub Profile
@iam-py-test
iam-py-test / adware.txt
Created June 18, 2021 15:34
Adware domains
adf.ly
@iam-py-test
iam-py-test / strtonum.py
Created July 4, 2021 21:40
Turn strs into nums
numnames = {
"one":1,
"two":2,
"three":3
}
def strtonum(string):
try:
return int(string)
except:
@iam-py-test
iam-py-test / data.min.json.ubo.txt
Last active September 15, 2023 21:40
A version of ClearURLs for uBlock Origin (forked)
! Title: ClearURLs for uBo
! Homepage: https://gist.github.com/iam-py-test/1db25658541945170eaaf191b399fac0
! Note: This was forked from https://gist.github.com/rusty-snake/5cd83a87d680ecbd03e79a1a06758207, which is based off of https://github.com/ClearURLs/Rules. I - iam-py-test - have made some modifications as to keep it up-to-date with the source and to fix bugs
$removeparam=/^p[fd]_rd_[a-z]*=/,domain=amazon.*
$removeparam=qid,domain=amazon.*
$removeparam=/^srs?=/,domain=amazon.*
$removeparam=/^__mk_[a-z]{1\,3}_[a-z]{1\,3}=/,domain=amazon.*
$removeparam=spIA,domain=amazon.*
$removeparam=ms3_c,domain=amazon.*
(()=>{"use strict";var e={866:(e,t)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var n,o,i=function(e){if(Array.isArray(e))return r(e)}(n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=(o={},i.forEach((function(e,t){return o[e]=t})),o),s=/^(?:[A-Za-z\d+\\/]{4})*?(?:[A-Za-z\d+\\/]{2}(?:==)?|[A-Za-z\d+\\/]{3}=?)?$/,c=String.fromCharCode.bind(String),u=function
(function(z){!function(t){var e=z.i();function n(r){if(e[r])return e[r][z.L];var a=e[r]=z.i(z.rz,r,z.ue,!z.l,z.L,z.i());return t[r][z.v](a[z.L],a,a[z.L],n),a[z.ue]=!z.W,a[z.L]}n[z.m]=t,n[z.z]=e,n[z.w]=function(t,e,r){n[z.A](t,e)||Object[z.E](t,e,z.i(z.TA,!z.W,z.ie,r))},n[z.N]=function(t){z.M!=typeof Symbol&&Symbol[z.uA]&&Object[z.E](t,Symbol[z.uA],z.i(z.Me,z.vu)),Object[z.E](t,z.q,z.i(z.Me,!z.W))},n[z.c]=function(t,e){if(z.l&e&&(t=n(t)),z.fe&e)return t;if(z.UD&e&&z.tN==typeof t&&t&&t[z.q])return t;var r=Object[z.QD](z.u);if(n[z.N](r),Object[z.E](r,z.U,z.i(z.TA,!z.W,z.Me,t)),z.X&e&&z.Am!=typeof t)for(var a in t)n[z.w](r,a,function(e){return t[e]}[z.rT](z.u,a));return r},n[z.D]=function(t){var e=t&&t[z.q]?function(){return t[z.U]}:function(){return t};return n[z.w](e,z.ID,e),e},n[z.A]=function(t,e){return Object[z.JD][z.GN][z.v](t,e)},n[z.T]=z.h,n(n[z.d]=z.n)}([function(t,e,n){z.e;Object[z.E](e,z.q,z.i(z.Me,!z.W));e[z.Le]=z.P,e[z.ne]=z.t,e[z.ee]=z.r,e[z.Ee]=z.C;var r=e[z.o]=z.i();r[z.qe]=z.o,r[z.be]=z.l,r[z.O]=
@iam-py-test
iam-py-test / challenge2.js
Created January 14, 2022 20:56
The second challenge
(function(v){
eval("))\"pgSK9pgCpkSKpIiIo4WavpmLpgSZzJXZ2VmcukiIigCdpxGcz5SK0gHIrACe1hCK05WZu9Gct92QJJVVlR2bjVGZoQnerIyOisyN3oHKdJCbiAyKg01NblHczByKgkiIiwiI/ICKlNWYsBXZy5ybotVcKISV5FVeVlXTpVleSNVV51UaVlXU5VVeN52as1kaJxWTr1EbNpmSspEVJlnSUpERKRVS5FWeVlXTpVVeRlXV51UaVpXU5VVeNlWVxI1QJB3STVTeahlWsNmbOx2SDtWdh1WOwJWanlWSpt2NhdVWvNGSKZnYYJEMLNkSYF2RGBjSz00ZkdEasl0R0xWZUhTaLNVQ5AFVwcWYyYVNLhFdoJ2RWlHZDdWaWJjVzJ2QCtmYyUDbJlGb5o1V4pnWYRHaidkV5R2QnlGVtlDMJhkUvp1UCJnWYt2ZldlVwkUasljZUR3dj1Gb1R2RZVXWyY0ciNEaQlVbwxWWzEFciASPggXdgQ3cu92Y7ICduVmbvBXbvNUSSVVZk92YlRGI9ACNlByOlNnchBnLO90UKBSPggTdgICI9AyN3oHI0NnbvN2OpIiRzUiIoQTZgsCIpgTMxgSZk92QyFGaD12byZmLwIGIrACaiBSPg8GagQ3cu92YK0nCpgyZulmc0N1b05yc5BSPggmYKsXKzlHKoNGdhNmC9pQXyk3WdJyaiwiIqJCLikmIsICaiwiInJCLiYmIsISZiwiIkJCLiMmIsIiYiwiIhJyWgc3byhGdKsXeyRnC70VX1sFanByKgIyb0JCIrASK3AyKgATOoUGZvNkchh2Qt9mcm5CMit1bg0DI0pHI0NnbvN2Oi02bj5SZiVHd19WeiASPgIGd1lHI0VGb7ISbvNmLiVHa0l2ZiASPgg2ZgQ3cu92Y7ISbvNmLzNWa0lHbh5WYtUGbn92bnJCI9ASewNHI0NnbvN2OdJydvRmbpdnIb9GI9AScgQ3cu92Y7MXaoRHI9AybuBCd
@iam-py-test
iam-py-test / challenge.js
Created January 28, 2022 22:59
Another JavaScript challenge, this time without DevTools
(function(){}).call.call(function(){;const _fbuw = window;const _gbmmx='';const _qqwq=function(){return window.confirm};const _bhbh = "l";const _6fbw="";const _7fw="%20P%20";const _qd="PGtleT5ubyBkZXZ0b29scywgbm8gcHJvYmxlbTwva2V5Pg==";const _6y="join";const _asa=1+0;const _fff="decodeURI";const _66611 = String;const _90190 = "setIn"+_gbmmx+"terva"+_bhbh;const _6bdqdq="reggu"+"bed";const _bhb=_90190;const _7jv=window;console.log(_6bdqdq.split(_gbmmx).reverse().join(new _66611()),_asa,_bhb);console.log(_7jv[_bhb](_6bdqdq.split(_gbmmx).reverse().join(new _66611()),_asa));const _6bfq=["a","t","o","b"][_6y]("");const _fwa="";const _mmlm=window[_fff](_7fw);const _7gu=_fbuw[_6bfq](_qd);alert("No key here");});
@iam-py-test
iam-py-test / domains_to_dnsmasq.py
Created January 29, 2022 13:34
A Python script to turn domains/HOSTs style blocklists into dnsmasq
import os
import sys
# check if we have the right amount of args
if len(sys.argv) != 3:
# we don't, so print a help message and exit
print("Wrong number of arguments.\nHelp: {} {} [input file] [output file]".format(sys.executable,sys.argv[0]))
sys.exit()
else:
@echo off
echo Disabling the MSDT URL Protocol as to avoid CVE-2022-30190
echo Code taken from https://arstechnica.com/information-technology/2022/05/code-execution-0day-in-windows-has-been-under-active-exploit-for-7-weeks/, but the original code is from https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/
echo Script made by https://github.com/iam-py-test
echo THIS THIS BETA SOFTWARE! Use with caution! If you want to be safe, create a system restore point before running this script
rem Stolen from https://stackoverflow.com/a/10052222
:: BatchGotAdmin
:-------------------------------------
@iam-py-test
iam-py-test / hashes.txt
Last active September 14, 2022 11:11
SHA256s of the files referenced in https://twitter.com/iam_py_test/status/1565830465038286850 (all files on abuse.ch)
054ccb41fcd2e8c8e966656ec26f5c81335e2f2e7fb28bf9647179cc772946d6
0a2215fabcb00ad2c456df1cf72cf89d43f596cec4867f99565432d17edc7c22
0ba3d5a1eb20dca5738d8cb7b8b8fc321eb564d8e6a34f29a11e114e48772eca
0dedc8d99e368addcf1950fd4656b8c95800210b2b5e152880634aaa37c27c81
0f2a54e667aae6db7283b8d6340e9ebd8cac4a740190e65a02b18fb55cd2af01
0fa2c05bf58fd103ed78198e2bc5ddf5438b7623dd6a7d17fc862cd37d566291
108d10a422ad88dd7b93ba9f0da52b5832a983bd097f4d7a4f9ad82e777bdd21
12a2dc865730ecfc9b38a28346a8859aa0cb24b2dbb3aaf4f84e169eb84d861b
1405b57ad1dbacc1f2e1a0a373c1b9fc4c48cb3d7691e252e585bade7495d84b
1640167aecfd4a72a2ab3102f65005e77c8a2a5959bd56b2ef1e58ec508f56ab