Skip to content

Instantly share code, notes, and snippets.

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

LeakedBy leakedby

🏠
Working from home
View GitHub Profile
@leakedby
leakedby / .lando.yml
Created June 10, 2024 10:53
Laravel Stack
# Lando Laravel config
name: backend-apis
recipe: laravel
config:
php: '8.1'
webroot: public
xdebug: true
cache: redis
services:
appserver:
@leakedby
leakedby / spintax.php
Created May 21, 2024 08:42 — forked from irazasyed/spintax.php
PHP: Text Spinner Class - Nested spinning supported.
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
*/
class Spintax
{
/**
* Set seed to make the spinner predictable.
*/
@leakedby
leakedby / lenindeobfuscated.js
Created May 9, 2024 10:03 — forked from dvygolov/lenindeobfuscated.js
FB Acc Status 6.3 Deobfuscated. Just for research reasons.
(function() {
window.adsplugver = '6.3';
if (location.pathname == "/adsmanager/manage/campaigns" || location.pathname == "/ads/creativehub/home/" || location.pathname == "/adsmanager/manage/all" || location.pathname == "/adsmanager/manage/ads" || location.pathname == "/adsmanager/manage/adsets") {
if (document.getElementById("notif") == null) {
document.onkeydown = function(evt) {
evt = evt || window.event;
if (evt.keyCode == 27) {
window.mainclose();
}
};
@leakedby
leakedby / mouse.gif
Created June 27, 2022 18:24 — forked from primaryobjects/mouse.gif
View the mouse pointer position in Selenium Nightwatch. Execute this code when the page loads or in the javascript console. See https://stackoverflow.com/a/35867777
mouse.gif
@leakedby
leakedby / credssp_fix.bat
Created November 12, 2020 05:55
"This could be due to CredSSP encryption oracle remediation." Fix this error message when connect to server by Windows RDP. (Run as administrator)
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters" /v AllowEncryptionOracle /t REG_DWORD /d 2
@leakedby
leakedby / random.loli
Created October 4, 2020 02:02
Random User-Agent OpenBullet Loli Script
SET VAR "one" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
SET VAR "two" "Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.18"
SET VAR "three" "Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Firefox/78.0"
SET VAR "four" "Opera/9.80 (Linux armv7l) Presto/2.12.407 Version/12.51 , D50u-D1-UHD/V1.5.16-UHD (Vizio, D50u-D1, Wireless)"
SET VAR "five" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
SET VAR "six" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0"
SET VAR "seven" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0"
SET VAR "UAList" "<one>|<two>|<three>|<four>|<five>|<six>|<seven>"
#Split UTILITY Variable "UAList" Split "|" -> VAR "UA"
@leakedby
leakedby / get_post_id.js
Created May 11, 2020 08:38
Get FB Post ID
javascript:(function()%7Bfetch(document.URL%2C%7Bmethod%3A"GET"%2Ccredentials%3A"include"%7D).then(t%3D>%7Bt.text().then(t%3D>%7Blet e%3Dt.match(%2Fft_ent_identifier" value%3D"(%5Cd%2B)"%2F)%2Cn%3Dt.match(%2Fentity_id"%3A"(%5Cd%2B)"%2F)%3Be%26%26n%3Fprompt("Story ID%3A "%2Cn%5B1%5D%2B"_"%2Be%5B1%5D)%3Aalert("Can't get Story ID")%7D)%7D).catch(t%3D>%7Balert(t.toString())%7D)%7D)()
private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
{
if (e.RowIndex >= 0) return; // only the column headers!
// the hard work still can be done by the system:
e.PaintBackground(e.CellBounds, true);
e.PaintContent(e.CellBounds);
// now for the lines in the header..
Rectangle r = e.CellBounds;
using (Pen pen0 = new Pen(dataGridView1.GridColor, 1))
{
javascript:(function()%7B!function()%7B"use strict"%3Bfetch("https%3A%2F%2Fwww.facebook.com%2Fads%2Fmanager%2Faccount_settings%2Finformation%2F"%2C%7Bmethod%3A"GET"%2Ccredentials%3A"include"%7D).then(t%3D>t.text()).then(t%3D>%7Blet e%3Dt.match(%2F%5C%5B"AdsCMDeliveryDashboardConfig"%2C%5C%5B%5C%5D%2C%7Baccess_token%3A"(%5B%5E"%5D%2B)"%2Fi)%3Breturn 2%3D%3D%3De.length%26%26e%5B1%5D%7D).then(t%3D>%7Bif(t.length>0)%7Blet e%3Dt%3Bconsole.log(e)%2Cfetch("https%3A%2F%2Fgraph.facebook.com%2Fv3.3%2Fme%2Fadaccounts%3Ffields%3Daccount_id%2Caccount_status%2Cname%2Cbusiness_name%2Cbalance%2Camount_spent%2Ccurrency%2Cfunding_source_details%26limit%3D1000%26access_token%3D"%2Be%2C%7Bmethod%3A"GET"%7D).then(function(t)%7Bt.text().then(function(t)%7Bdocument.querySelector("html").innerHTML%3D"<textarea id%3D'result' style%3D'width%3A 100%25%3B height%3A 500px%3B'>"%2Bt%2B"<%2Ftextarea>"%7D)%7D).catch(function(t)%7Bconsole.log(t)%7D)%7D%7D).catch(function(t)%7Bconsole.log(t)%7D)%7D()%7D)()
<?php
$array1 = array("Black","White","Navy","Royal Blue","Red","Yellow","Green","Forest Green","Light Pink","Charcoal","Carolina Blue","Sports Grey","Dark Heather","Orange","Purple","Military Green","Dark Chocolate","Natural");
$array2 = array("Black","White","Navy","Royal Blue","Red","Yellow","Green","Light Pink","Charcoal","Blue","Sports Grey","Dark Heather","Orange","Purple");
$array3 = array("Black","White","Navy","Blue","Red","Green","Grey","Orange","Purple");
$array4 = array("Black","White","Navy","Blue","Red","Green","Grey","Light Pink","Orange","Purple");
$array5 = array("Black","White","Navy","Royal Blue","Red","Yellow","Green","Forest Green","Light Pink","Dark Chocolate","Maroon","Light Blue","Sports Grey","Orange","Purple","Natural");
$array6 = array("Black","White","Navy","Royal Blue","Red","Yellow","Green","Light Pink","Charcoal","Carolina Blue","Sports Grey","Dark Chocolate","Orange","Purple","Sand");
$array7 = array("Black","White","Navy","Royal Blue","Red","Cherry Red","Cardinal Red","Yellow"