Skip to content

Instantly share code, notes, and snippets.

View ndunks's full-sized avatar
💭
I'm programer and I have wife 😄

Mochamad Arifin ndunks

💭
I'm programer and I have wife 😄
View GitHub Profile
@ndunks
ndunks / TouchSetting.gt
Created August 30, 2024 04:43
Advan Vanbook W80 Touchscreen Driver Goodix Touch Config for Windows 8/10
; Note: Install Intel Chipset/Graphic driver first
; Driver using HP Stream 8 Tablet: https://support.hp.com/au-en/drivers/hp-stream-8-tablet/7439999
; Direct Link: https://ftp.hp.com/pub/softpaq/sp72001-72500/sp72185.exe
; Config From: https://www.kaskus.co.id/show_post/5f06dcdeeaab257ffd3016de?child_id=65f2eb2052ee3ec7c409a6f1&ref=profile&med=post
[Setting]
;UpdateCFG=1
SendCFG=1 ;Send CFG to touch IC when loading driver
SleepDisable=0
PhysicalXsize=1536 ;Physical size,the unit is 0.1mm
PhysicalYsize=900
@ndunks
ndunks / kali-notes.sh
Created February 17, 2024 02:55
kali-notes.sh
#in Kali VM with NAT network
sudo openvpn ./Desktop/universal.ovpn &
# allow IP forward
# /etc/sysctl.conf
# net.ipv4.ip_forward=1
sudo sysctl -p
# NAT
sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
@ndunks
ndunks / bettercap-waydroid.sh
Last active July 30, 2023 13:26
Bettercap Waydroid Note
#!/bin/false
# Run without root( not fully work, miss some caps)
sudo setcap 'cap_net_bind_service=ep cap_net_admin=ep cap_net_broadcast=ep cap_net_raw=ep cap_fowner=ep cap_sys_admin=ep' `which bettercap`
# Trust bettercap Root Ca (Fake GoDaddy)
sudo mount /dev/loop0 ./mount
# Android 11 Go Daddy original CA root
# filter
iptables -A FORWARD -d 10.19.49.19/32 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8443 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8880 -j ACCEPT
# nat
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 8443 -j DNAT --to-destination 10.19.49.19:1234
iptables -t nat -A POSTROUTING -d 10.19.49.19/32 -o wg0 -p tcp -m tcp --dport 1234 -j SNAT --to-source 10.19.49.1
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 8880 -j DNAT --to-destination 10.19.49.19:8880
const a = [
"89ac3a689b5db6d45f266c5ae38be1c64df684bf",
"0f5556a330fde267c83ef9f71b6a427e20f98f9c",
"bf87fbc805f330f5f1f18b1af9b26cafa9e5f66a",
"1fd3f041458c6de396904bf0c38ab2329790ee35",
"ac8efbee8e25ed4daef74ba5235d195c1bbe8648",
"2bd23f3ef022eb103aa3c45a2d12411c0cd06f51",
"d2823018d13e4aa4c34eaf869304f1aec2896486",
"f66f7c079941e0686a39f5f7f194594c5d17374c",
"204ea5f26eea32a56362eaccb699084c05cc6c3a",
const answers = [
"73e9581796cf678acf0f7dbe9f0f86140b48e39e",
"434b80511bc9ac3fe8d9026fd40929648f55c2bb",
"3adf50b5486791109374cca991ecaeceec25e3e2",
"09512ffd7c51cdbba82bd9bb08724a9db357a87d",
"bae22aa2bfa1ef97f30666717671c1016cd64c9f",
"c04f8104d1e3cec5899c793bce8d7432b53dab5d",
"ba8c69c6a447dc2a1fb050fc2150476dc087a531",
"a1dd1d77d0b2928d228e0f73ca6ee5c1b47798f8",
"c8f26b4549a52f50c9af469ab1813494b543416d",
@ndunks
ndunks / Dockerfile
Created February 25, 2023 06:08
Docker with X Graphical browser chrome
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y chromium-browser
RUN export uid=1000 gid=1000 && \
mkdir -p /home/user && \
echo "user:x:${uid}:${gid}:User,,,:/home/user:/bin/bash" >> /etc/passwd && \
echo "user:x:${uid}:" >> /etc/group && \
echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
@ndunks
ndunks / compile-gcc11-debian.sh
Last active December 5, 2022 03:20
Build/Compile GCC 11 in debian
#!/bin/bash
[ -f ~/app/gcc-11.1.0.tar.xz ] || \
wget -O ~/app/gcc-11.1.0.tar.xz http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz
[ -d ~/app/gcc-11.1.0 ] || tar -C ~/app -xvf ~/app/gcc-11.1.0.tar.xz
apt update
apt install -y \
wget xz-utils bzip2 make autoconf gcc-multilib g++-multilib \

Logs

2022-10-17 06:41:54,110 [myid:] - WARN  [NIOWorkerThread-1:o.a.z.s.NIOServerCnxn@380] - Close of session 0x0
java.io.IOException: Connection reset by peer
        at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
        at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
set -g mouse on
# Select then right click to set clipboard
set-option -s set-clipboard off
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"