nmap -p80,443,445 -sV -O --osscan-guess 192.168.1.10-50 -T4
nmap 192.168.1.15 # single ip scan
nmap 192.168.1.15 192.168.1.52 # more ip scan
nmap 192.168.1.1-254 # ip range defination
nmap 192.168.1.0/24 # with net mask
nmap abc.com # with domain
nmap -iL target.txt # with filesysteminfo # displays system info
show_mount # displays the connected disk (partitions)
idletime && localtime # displays system idle time and local time
shutdown && reboot # close system or restart
ipconfig # displays the system ip config
route # allows routes to be displayed and modified
ps # displays running processes
kill <PID> # terminates the process of the related PID.
getpid # displays which PID the session is running on
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <netinet/tcp.h> | |
| #include <arpa/inet.h> | |
| #include <sys/time.h> | |
| #include <sched.h> |
important libs:
sudo pacman -S sof-firmware alsa-ucm-conf linux-firmware pipewire pipewire-alsa pipewire-pulse wireplumberfor pipewire:
sudo pacman -S pipewire pipewire-pulse wireplumber lib32-pipewirelearn current audio card stat
It's just for waybar of hyprland config :
killall -SIGUSR2 waybarBash script for all time listening changes:
#!/bin/bash
CONFIG_LOC="/home/user/.config/waybar/config"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Description: Script to fix WLAN issues on Kali Linux by restarting interfaces and services. | |
| # Logs all actions with timestamps to wlan_fix.log. | |
| LOGFILE="wlan_fix.log" | |
| # Function to log messages with timestamp | |
| log() { | |
| echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" | tee -a "$LOGFILE" |
Generate SSH Key
ssh-keygen -t ed25519 -C "[email protected]"
# or
ssh-keygen -t rsa -b 4096 -C "[email protected]"Copy Generated Key
cat ~/.ssh/id_ed25519.pub