2024-03-30
Hacker Virtual Machines, Containers

on termux you use proot-distro for installing kali and blackarch linux.

install via apt install proot-distro


use podman over docker, since we do not need gpu here, and want faster pulling speed.

recent version of podman requires extra layer of domain/index specification before searching and pulling images.

1
2
3
podman search docker.io/kali
podman pull docker.io/kalilinux/kali-rolling


if you want to run network scanning commands like nmap, you would grant the container sufficient permissions:

1
2
podman run --cap-add=NET_RAW --cap-add=NET_ADMIN --rm -it docker.io/parrotsec/security


metasploitable2, parrot linux also have docker images. more cybersecurity/ctf related images to be found.

run this query in search engines:

1
2
site:github.com cybersecurity docker images

https://github.com/VaultSEC/osint

https://github.com/PberAcademy/Dockerimages


on ubuntu you use docker for pulling kali and blackarch linux images. latest images are pushed to docker hub.

1
2
3
4
5
sudo docker pull kalilinux/kali-rolling
# kali-rolling does not contain all packages
# run inside container: apt update && apt install -y kali-linux-headless
sudo docker pull blackarchlinux/blackarch


it is always recommend to update and upgrade the blackarch you installed.

Read More

2022-12-10
Nodejs Node_Path For Npm Global Package Installation

when installing global ackages, we do not need to specify NODE_PATH. but it is not configured beforehand thus when you want to import packages from there you will face issue.

for zsh/bash/fish:

1
2
export NODE_PATH=<NODE_PATH>

on windows just use the old school drill (open environment editor)

chech the exact path of NODE_PATH after invoking npm install -g <package_name>, then check if the installed package exists in that path you guessed.

on termux: /data/data/com.termux/files/usr/lib/node_modules

on kali: /usr/local/lib/node_modules (may be inaccurate)

on macos: /opt/homebrew/lib/node_modules (nodejs installed via brew)

Read More

2022-12-09
Add Certificate To Termux, Especially For Fastgithub

install openssl-tools then use add-trusted-certificate against the .crt file, so curl will work fine (still not for elinks, i wonder why that works on macos and linux, or maybe not? just use playwright instead.)

chromebook is different. you need to export the proxy to 0.0.0.0 by means of nginx or something, so you can configure proxy to 100.115.92.14 or 100.115.92.2 as seen in termux by ifconfig

Read More