Skip to content

Instantly share code, notes, and snippets.

@motebaya
motebaya / download_progress.py
Last active August 26, 2023 03:40
async multi threading downloader with rich progress bar
#!/usr/bin/env python3
# @credit: @gist.github.com/motebaya
# @modify: 2023-08-21 10:48:13.274582300 +0700
# @gist: simple async multi threading python for download batch file
# @docs:
# https://rich.readthedocs.io/en/latest/progress.html
# https://github.com/Textualize/rich/discussions/1102
# https://testfiledownload.com/
# https://stackoverflow.com/questions/64282309/aiohttp-download-large-list-of-pdf-files
@motebaya
motebaya / reg_vars.php
Created June 12, 2023 11:29
php script for replace func, class, and vars name to readable word
<?php
/*
replace all fuc, vars, and class name to readable word
credit: github.com/motebaya a.k.a mochino
Change: 2023-03-17 19:41:39.631431600 +0700
*/
include "../vendor/autoload.php";
@motebaya
motebaya / g_word.php
Created June 12, 2023 11:11
scrape readable word from site with PHPGuzzle and PHPHTMLParser
<?php
/*
@for get readable word to change function or variable name
@credit: t.me/dvinchii a.k.a michino
File: word.php
Size: 1966 Blocks: 8 IO Block: 4096 regular file
Device: 10304h/66308d Inode: 243109 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 1000/ mochino) Gid: ( 1000/ mochino)
Access: 2023-05-02 12:32:30.134484200 +0700
@motebaya
motebaya / blockads_sukidesuost.js
Last active March 7, 2023 15:01
simple tampermonkey script for remove anoying ads and enable right click
// ==UserScript==
// @name block otakudesu
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Mochino a.k.a motebaya
// @include /^https:\/\/otakudesu\.*\/*
// @match *://otakudesu\.*\/*
// @match *://kusonime\.*\/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@motebaya
motebaya / dont_click_ads.js
Created January 17, 2023 09:53
zippyshare tampermonkey script for click download button
// ==UserScript==
// @name dont click ads
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Mochino
// @include /^https:\/\/www\d+.zippyshare.com\/v\/\w*/
// @match *://www\d+.zippyshare.com\/v\/\w*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
<?php
/*
i convert it from js to python then from python to php LOL
credit: github.com/motebaya
*/
class Decoder
{
private $content;
@motebaya
motebaya / tester.js
Created September 17, 2022 17:25
node js hello world for sample or test with oop
/*
file tester with node js oop
help from:
https://stackoverflow.com/questions/9071573/is-there-a-simple-way-to-make-a-random-selection-from-an-array-in-javascript-or
https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep
https://stackoverflow.com/questions/18188083/javascript-oop-in-nodejs-how
*/
class Tester {
@motebaya
motebaya / kuso.js
Created September 17, 2022 14:37
a simple js xss for kusonime.com
/*
davins; (t.me/dvinchii)
date: new Date() => {
Sat Sep 17 2022 21:33:37 GMT+0700 (Western Indonesia Time)
}
*/
async function getdata(){
return new Promise((resolve, reject) => {
let data = {};
if (document.readyState == "complete"){
@motebaya
motebaya / dclean.php
Created September 2, 2022 12:55
get last layer for decode eddiekidiw
<?php
/// just for extract phar compiler
function extractPhar($file){
(new Phar($file))->extractTo(__DIR__);
}
// check argc
if (count($argv) < 2) {
die("usage: decode.php <file.php>");
@motebaya
motebaya / fbStream.js
Last active August 5, 2022 11:57
javascript snippet to get facebook video stream url
javascript: window.open(decodeURIComponent(document.body.innerHTML.match(/(?<=\/video\_redirect\/\?src\=)(.*?)(?=\")/)[0]));