Skip to content

Instantly share code, notes, and snippets.

@jsEveryDay
jsEveryDay / Delete on Exit
Created October 26, 2019 09:35
Chrome Cookies Clean on Exit, populate list directly from the console by pasting the code below. chrome://settings/content/cookies
function vk(domain){
setTimeout(() => document.querySelector("body > settings-ui").shadowRoot.querySelector("#main").shadowRoot.querySelector("settings-basic-page").shadowRoot.querySelector("#advancedPage > settings-section.expanded > settings-privacy-page").shadowRoot.querySelector("#pages > settings-subpage > category-setting-exceptions").shadowRoot.querySelector("site-list:nth-child(2)").shadowRoot.querySelector("#addSite").click()
, 300);
setTimeout(() => document.querySelector("body > settings-ui").shadowRoot.querySelector("#main").shadowRoot.querySelector("settings-basic-page").shadowRoot.querySelector("#advancedPage > settings-section.expanded > settings-privacy-page").shadowRoot.querySelector("#pages > settings-subpage > category-setting-exceptions").shadowRoot.querySelector("site-list:nth-child(2)").shadowRoot.querySelector("add-site-dialog").shadowRoot.querySelector("#site").shadowRoot.querySelector("#input").focus()
, 500);
setTimeout(() => document.execCommand('insertText', false, domain)
,
@jsEveryDay
jsEveryDay / zerohedgeAdBlock
Last active July 8, 2022 18:03
zerohedge.com cleanup
www.zerohedge.com##+js(aeld, scroll)
www.zerohedge.com##body:style(background: #202020 !important; color: #cccccc !important;)
www.zerohedge.com##h2 > a:link:style( color: #c3c3c3 !important; font-size: 20pt !important)
www.zerohedge.com##h2 > a:visited:style( color: #848484 !important)
www.zerohedge.com##div.container > div > div:not(.content)
www.zerohedge.com##div.content > :not(main)
www.zerohedge.com##div[class^="Advert"]
www.zerohedge.com##div#exitModalOverlay
www.zerohedge.com##div[class^="FeaturedContributors"]
www.zerohedge.com##div[class^="MidArticleNewsletter"]
@jsEveryDay
jsEveryDay / ga.js
Last active November 18, 2020 15:10
Overwrite Google Analytics
function random() {
return Math.floor(Math.random() * (9 - 2) + 2);
}
function fukWithGogle(cookie, domain) {
let ga = cookie.split('.')
ga[3] = (parseInt(ga[3]) + random()).toString()
ga[2] = (parseInt(ga[2]) + random()).toString()
ga = ga.join('.');
const newCookie = {
url: 'http://' + domain.slice(1),
-- Cancel the query using your line kill character or the \c sequence
SELECT * FROM negativePossitive ORDER BY\c
-- You'd like to turn a query result into HTML.
--Solution: The -H and --html options produce output
mysql -H -e "SELECT * FROM tablename WHERE condition=0" databasename;
-- Connect php to mysql
if (!($conn_id = @mysql_connect ("localhost", "mysql_user", "mysql_password")))
die ("Cannot connect to server\n");
@jsEveryDay
jsEveryDay / asyncAwait.js
Created May 4, 2019 01:52
Async Await Examples
//read this first
// //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
// The await expression causes async function execution to pause until a Promise
// is resolved, that is fulfilled or rejected, and to resume execution of the async
// function after fulfillment. When resumed, the value of the await expression is
// that of the fulfilled Promise.
// If the Promise is rejected, the await expression throws the rejected value.
// If the value of the expression following the await operator is not a Promise,
@jsEveryDay
jsEveryDay / DarkGithub.css
Created April 19, 2019 17:33
Github Dark CSS injection
body {
background-color: #222 !important;
background-clip: border-box !important;
background-origin: padding-box !important;
background-attachment: scroll !important;
background-repeat: repeat !important;
background-size: auto !important;
background-position: left top !important;
}
SSE3=1 SSSE3=1 SSE4_1=1 SAHF=1 AVX=1 FMA3=1 BMI1=1 BMI2=1 LZCNT=1 POPCNT=1 ATOM=0
Synopsis:
shell [options] [--shell] [<file>...]
d8 [options] [-e <string>] [--shell] [[--module] <file>...]
-e execute a string in V8
--shell run an interactive JavaScript shell
--module execute a file as a JavaScript module
Options:
rem Or even better, create a system image!
rem http://www.aomeitech.com/ab/standard.html
rem https://www.macrium.com/reflectfree
rem Things, that will get broken, that will get noticed ASAP or after restart, like Start or WiFi for sure!
rem Disabling network services (Dhcp/NlaSvc/netprofm/nsi/RmSvc) will prevent you from managing network settings!
rem Windows Defender Firewall is set to block all inbound/outbound except allowed apps, which have to be added first!
rem Terminating "ShellExperienceHost.exe" will restart it and Start's functionality
rem You can create a task, which runs after logon with one minute delay.
@jsEveryDay
jsEveryDay / securitytoollist.txt
Created February 8, 2018 16:54 — forked from trietptm/securitytoollist.txt
securitytoollist.txt by SH1NU11BI: http://pastebin.com/pGU0P8JW
0trace 1.5 A hop enumeration tool http://jon.oberheide.org/0trace/
3proxy 0.7.1.1 Tiny free proxy server. http://3proxy.ru/
3proxy-win32 0.7.1.1 Tiny free proxy server. http://3proxy.ru/
42zip 42 Recursive Zip archive bomb. http://blog.fefe.de/?ts=b6cea88d
acccheck 0.2.1 A password dictionary attack tool that targets windows authentication via the SMB protocol. http://labs.portcullis.co.uk/tools/acccheck/
ace 1.10 Automated Corporate Enumerator. A simple yet powerful VoIP Corporate Directory enumeration tool that mimics the behavior of an IP Phone in order to download the name and extension entries that a given phone can display on its screen interface http://ucsniff.sourceforge.net/ace.html
admid-pack 0.1 ADM DNS spoofing tools - Uses a variety of active and passive methods to spoof DNS packets. Very powerful. http://packetstormsecurity.com/files/10080/ADMid-pkg.tgz.html
adminpagefinder 0.1 This python script looks for a large amount of possible administrative interfaces on a given site. http://packetstormse