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 /
Last active July 30, 2023 13:26
Bettercap Waydroid Note
# 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 -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
iptables -t nat -A POSTROUTING -d -o wg0 -p tcp -m tcp --dport 1234 -j SNAT --to-source
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 8880 -j DNAT --to-destination
View web-penetration-testing.js
const a = [
View classical-cryptography-for-beginner.js
const answers = [
ndunks / Dockerfile
Created February 25, 2023 06:08
Docker with X Graphical browser chrome
View Dockerfile
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 /
Last active December 5, 2022 03:20
Build/Compile GCC 11 in debian
[ -f ~/app/gcc-11.1.0.tar.xz ] || \
wget -O ~/app/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 \


2022-10-17 06:41:54,110 [myid:] - WARN  [NIOWorkerThread-1:o.a.z.s.NIOServerCnxn@380] - Close of session 0x0 Connection reset by peer
        at java.base/ Method)
        at java.base/
        at java.base/
        at java.base/
        at java.base/
View tmux.conf
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"
helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
--set nfs.server= \
--set nfs.path=/kube-storage \
--set \
--set storageClass.defaultClass=true \
--set storageClass.provisionerName=nfs-nux-provisioner \
--set nfs.volumeName=nfs-nux \
--set nodeSelector."kubernetes\\.io/hostname"=kube-nux
View Combine Speaker Into Microphone like broadcaster
# Get input list: pacmd list-sources
# Get output list: pacmd list-sinks
load-module module-null-sink sink_name=michrophone sink_properties=device.description=michrophone
load-module module-loopback source=alsa_input.pci-0000_00_1f.3.analog-stereo sink=michrophone latency_msec=1
load-module module-combine-sink sink_name=combined sink_properties=device.description=combined slaves=michrophone,alsa_output.usb-1130_USB_AUDIO-00.analog-stereo