Skip to content

Instantly share code, notes, and snippets.

View ibnux's full-sized avatar
💭
korban PHP di Jawa

iBNu Maksum ibnux

💭
korban PHP di Jawa
View GitHub Profile
@ibnux
ibnux / serangpenipu.php
Last active March 27, 2024 15:53
php script untuk serang penipu yang pake bot telegram, pastikan ada gambar tai.jpg di sebelah filenya
<?php
ini_set('default_socket_timeout', 5);
while (true) {
$array = explode("\n", str_replace("\r","",file_get_contents("target.txt")));
foreach ($array as $a){
if(!empty(trim($a))){
$t = explode(" ", $a);
upload($t[0], $t[1]);
}
@ibnux
ibnux / mikrotik.script
Created September 2, 2022 03:46
Mikrotik Hotspot User Profile script, put this on IP -> hotspot -> User Profile
:local mak "";
:set mak $"mac-address";
/tool fetch "http://server.absen/?user=$user&mac=$mak&secret=TambahSecretBiarAman" mode=http dst-path=flash/absen.txt;
@ibnux
ibnux / key.md
Created December 12, 2021 15:31
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@ibnux
ibnux / id.yml
Created August 27, 2021 06:13
Redmine mengubah label Masalah menjadi Tugas
# Indonesian translations
# by Raden Prabowo (cakbowo@gmail.com)
# /usr/share/redmine/config/locales/id.yml
id:
direction: ltr
date:
formats:
default: "%d-%m-%Y"
short: "%d %b"
@ibnux
ibnux / acakKTP.php
Created May 26, 2021 06:17
mengacak KTP yang disimpan di database, dan kadang nomor HP juga.
<?php
/**
* variable acak tidak boleh ada angka yang berulang
* Untuk membuat kode acak bisa menggunakan shuffle
* $acak = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
* shuffle($acak);
* echo implode(',',$acak);
* jumlah acakKTP harus sesuai dengan length KTPnya yaitu 16
*/
@ibnux
ibnux / check.php
Created March 24, 2021 08:29
Script untuk check session go whatsapp rest
<?php
/**
* Simpan di folder project go whatsapp rest
* disebelah Dockerfile
* jalankan cronjob setiap 5 menit
* cronjob: */5 * * * * cd /path/to/go-whatsapp-rest && php check.php
*/
$file = "./config/085156812578.gob";
$path = "./config/stores/085156812578.gob";
@ibnux
ibnux / upload.py
Created January 23, 2021 16:01
Python script for Upload Screenshoot Kindle to telegram
import os, requests
# Your kindle must be jailbreak then install SSH and python
# https://www.mobileread.com/forums/forumdisplay.php?f=140
# save script on /mnt/us/upload.py
# run: mntroot rw
# edit /etc/crontab/root
# add: */5 7-22 * * * * python /mnt/us/upload.py
# every 5 minuts it will check screenshoot, upload it, and delete it
# you can run python /mnt/us/upload.py to check it is it working
@ibnux
ibnux / kode.php
Created July 29, 2020 11:23
Lisensi header
<?php
/******************************************************************************\
Dengan menyebut nama Allah Yang Maha Pemurah lagi Maha Penyayang
Ya Allah, Sayangilah Kode ini sebagaimana Hambamu menyayangi kode ini
******************************************************************************
* *
* Copyright (C) 2020 by Ibnu Maksum Last modified : April 16th, 2020 *
******************************************************************************
* This source and program come as is, WITHOUT ANY WARRANTY and/or WITHOUT *
@ibnux
ibnux / convertKeyGenMusic.php
Created May 4, 2020 18:14
convert KeyGen Music Pack on mac using VLC command line
<?php
// php -f convertKeyGenMusic.php
$path = "KEYGENMUSiC/";
$command = '/Applications/VLC.app/Contents/MacOS/VLC -I dummy -vvv --sout \
"#transcode{acodec=MP3,ab=128}:std{access=file,mux=wav,dst="/Users/ibnux/Desktop/KeyGenMusic_MusicPack_2020-03-full/MUSICKEYGEN/[DEST]"}" \
"/Users/ibnux/Desktop/KeyGenMusic_MusicPack_2020-03-full/[SOURCE]" vlc://quit';
scanDirectory($path);
function scanDirectory($path){
@ibnux
ibnux / scanCSS.php
Created April 23, 2020 09:27
PHP Script to scan CSS class in folder, it will create json array you can use to strip unused css
<?php
$class = array();
$path = "template/";
cariFile($path);
print_r($class);
file_put_contents("css_class.json",json_encode($class,JSON_PRETTY_PRINT));
//class="
function cariFile($path){
$list = scandir($path);