Thoughts, projects, Linux/BSD, and things worth sharing.
First three characters of the hash list the hash type.
$1$ = MD5 --> $2a$ = bcrypt --> $2y$ = bcrypt --> $5$ = SHA-256 --> $6$ = SHA-512
ftp - clear-text (insecure!) File Transfer Protocol client
sftp - secure (encrypted) version of FTP
scp - secure (encrypted) version of cp command
wget - download files from remote servers
curl - download files from remote servers as well
ssh - secure shell a encrypted remote access client
telnet - clear-text (insecure) remote access protocol
ps - list processes
top / htop - show tasks and system status
kill - kill a process
ifconfig - show and set IP addresses
ip - show and set IP addresses or (ip a)
ping - check if remote host is reachable via ICMP ping
netstat - show network stats and routing information
shutdown / halt - there are a couple ways of shutting down the system either with this command or init 0 or shutdown -h now
reboot - reboots system , but you could try init 6 as well
hostname - show or set hostname
w - display system load, whos logged in and what they are doing
uname - prints unix system information (uname -r - prints current kernel)
cd - change directory ( cd .. for going back to previous directory)
pwd - prints current working directory
ln - make links and symlinks to files and directories
mkdir - make new directory
rmdir - remove directories
cat - concatenate files and show contents to the standard output
more - basic pagination when viewing text files
less - an improved pagination tool for viewing text files
head - shows the first 10 lines of a text file
tail - shows the last 10 lines of a text file
grep - search for patterns in text files
ls - list files and directories
cp - copy files
rm - remove files or directories
mv - move or rename files and directories to another location
chmod - change file/directory access permissions
chown - change file/directory ownership
whoami - shows your username
id - print user identity
groups - shows which groups user belongs to
passwd - change user password
who - find out who is logged into your system
last - show history of logins into the system
date - show current date and time
sleep - wait for a given number of seconds to start a task
uptime - shows how the your system has been up for
clear - clears screen
history - shows history of previous commands
Meet Qwerty a TUI based text editor. I know there are many text editors that are universally used, but I was bored and decided to spin this up for the hell of it , it uses stty for the live input. Use it freely.
A hacker reportedly obtained a large collection of sensitive personal information from the Department of Homeland Security (DHS).
The breach compromised the names, job titles, phone numbers, email addresses, and office locations of more than 41,000 employees, including personnel from U.S. Immigration and Customs Enforcement (ICE) and Customs and Border Protection (CBP).
The leaked information also revealed connections between the agencies and specific surveillance technologies. Since a lot of sites are blocking links to the leak , here you have it.
I've been a fan of KDE since I started using linux, seeing its evolution throughout the years has been remarkable.
Copy and paste it on you favorite RSS Reader.
Are you constantly spinning up new vm's to try out new distros or experimenting with different ISO's , but you can't find a good enough program to help you with your virtualizations?
Around 5 Years ago I discovered Proxmox a all-in-one hypervisor with KVM and QEMU as it's backend and based on Debian. It also has a simple to use GUI.
But I thought to myself why restrict a PC to just this OS instead of running it on my current distro and using that server for something else like hosting this blog and doing other BSD related stuff.
Thats when I decided to install and configure KVM/QEMU on my current distro and cutting out the middleman. It's a straight forward installation and i've added the steps for each distro below. Enjoy.
Installation Steps Libvert Forward Script
The dd command in Linux is a command-line tool used for copying and converting data at a low level.
It can be used to duplicate entire disks, create disk images, back up partitions, and even write files like ISO images to USB drives.
But sometimes its hard to remember all sorts of commands at once , thats why I made this simple bash script that makes you choose the drive you want to flash , finds the iso or img file and starts flashing.
No need for third party software like balenaEtcher or Rufus , run everything from your terminal.
Recently , the less I have to deal with big tech the better off I am , as well as many other people that have figured out and decided not to use these services any longer.
There are plenty of other self hostable routes , giving you full control of your data and personal information. This is why I decided to host my own email server on a vps with a domain I own.
I was watching one of Luke Smith's videos and decided to build one myself. The following script is an extension of the orignal Luke provided with a greater probability of working the first time you run it.
Don't forget to add A records to your domain like mymail.com and mail.mymail.com , the txt records will be added after your dkim is provided once the setup completes.
After everything is done and up we will need a way to see the emails be sent and recieved. My go-to application to use is Mutt.
Mutt is a command-line-based email client, which is a highly useful and powerful tool for sending and reading emails from the command line in Unix-based systems.
Mutt also supports POP and IMAP protocols for receiving emails. It opens with a colored interface, making it user-friendly for sending emails from the command line.
Mutt requires you to add a config for your email server to function, the example provided below is how your .muttrc file should look like.
Normies like to carry around their portable private media and storage without any encryption to protect them from theives stealing their property and having all the data either dumped for free or put up for sale.
LUKS (Linux Unified Key Setup) is a versatile, high-performance, well-studied disk encryption system with no known vulnerabilities. LUKS supports numerous encryption algorithms and operating modes,
as well as several hash functions. You can choose from many supported ciphers.
In order to encrypt a drive we must first format to our desired filesystem. For example (sudo mkfs.ext4 /dev/sdb1) zed , command formats that current partition to ext4,
After that we'll go ahead and start the Luksformat command like so ---- sudo cryptsetup luksFormat /dev/sdb1,
this will indicate which cipher you would like to use and also ask you for a secure password in order to access that partition. Once the format is complete run the following command which will ask you for the new password
sudo cryptsetup open /dev/sdb1 tux <--- add a nickname for your drive like I did here (tux).
If you run sudo mount /dev/mapper/tux /mnt/flashdrive/ it'll mount your encrypted drive to /mnt/flashdrive securely, /dev/mapper is what you're going to use to refer to your encrypted drives.
What if we've done all we needed to do with the drive and want to lock it back up. simple. Go ahead and unmount /mnt/flashdrive first sudo umount /mnt/flashdrive and the close the open luks enviornment like so ,
sudo cryptsetup close tux , and just like that you've learned our most essential step in practicing good OPSEC.
For years i've been a big proponent on using rss to avoid viewing the web with modern day ads and bloatware and just viewing what we want to see.
Back in the early 2000s every website advertised/posted their rss feeds on the main page but not anymore , you have to dig deep in order to find them.
The Main program I use to view my rss feeds and catch up on youtube videos is Newsboat , this application allows me to add custom configs to open articles in browsers or videos uing yt-dlp through mpv.
On newsboat all you have to do is add a config on how you want your videos to play and your articles to open as well as adding a urls file in .newsboat,
with abbreviations at the end to easily separate each type like "news" or "youtube" at the end of each url. You could use the the T key to browse through them or O to open articles or ,v to open videos using mpv with the config right below.
CONFIG ------->>> browser "firefox %u" macro v set browser "mpv --ytdl-format='bestvideo[height<=480]+bestaudio/best[height<=480]' %u"; open-in-browser ; set browser "firefox %u"
The core idea behind buskill is to use a cable that triggers a udev remove event when your laptop is stolen, allowing the system to execute a predefined security action.
You could use a USB flash drive attached to a retractable lanyard. However, if the thin cord snaps during a theft, the USB drive could remain securely connected to the laptop, defeating the purpose.
A more reliable approach is to keep the USB device securely attached to your body and run a data cable from it directly to your laptop.
For additional protection, place a magnetic breakaway connector as close to the computer as possible, so the connection disconnects cleanly if the cable is pulled.
Here are the UDEV Rules followed by a systemD service for gnome and xfce.
Unfortunately, on linux mobile there isn't a reliable way to browse the onion network besides installing brave and using their tor feature, which in my opinion for mobile it isn't scaled properly and tor is finicky.
I had the idea of just turning the pre-installed Firefox app and hardening it a bit with no JS and other tracking things and just add a manual proxy config to the browser.
It won't do all the bells and whistles like the Tor Browser but you could tweak it to resemble the original. Below is the config to add to your torrc file , if you're thinking about using tor on 4G/5G
you should keep the ipv6 flag on in the config since in the US major carriers use ipv6 instead of ipv4. With that you would just have to add the local host ip and 9050 port with socks5 on firefox.
There have been many occasions where im at a public location (coffee shop / library / airport ) and in need for wifi.
All these free wifi networks most of the time require a sign in , in order to acces the network. Let's say you use one of your devices to sign in like your laptop running linux thats the only device you will need to go through the portal.
Once your in all you would have to do is connect your trusty ALFA Wifi Adpater and run the following scripts to start and stop the AP but make sure your adapter is in monitor mode. Then the rest of your devices could connect without sign ins or portals.
After a year or so of running postmarketOS (Nura) on my Oneplus 6T and Pixel 3a XL i've narrowed down the essential apps/tools most users will need.
First things first we're going to need to install tor and nyx on your system either linux or bsd , second we're going to need to port foward the server so the outside world could see it.
You will need to forward port 9001 on your router. and now add the following torrc config on /etc/tor and start tor ---- doas rcctl start tor, doas rcctl enable tor.
There you have it , you could tweak the bandwidth and other settings based on your needs but this should suffice and keep it as a guard node.
To view the current connections and stats just run doas nyx and that will display everything in a cool tui.
about:config browser.nova.enabled ----> false
So after weeks of trying to recover my previous website from a server who's storage got corrupted after a power surge,
i've decided to start a brand new fresh blog with backups done daily instead of living on the bleeding edge , lol.