<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on fahmi's website</title><link>https://fahimtu.xyz/tags/linux/</link><description>Recent content in Linux on fahmi's website</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 20 Oct 2026 19:20:33 +0700</lastBuildDate><atom:link href="https://fahimtu.xyz/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>What's inside this .xhtml file</title><link>https://fahimtu.xyz/posts/dont-click-email-attachment/</link><pubDate>Thu, 21 Oct 2021 00:00:00 +0000</pubDate><guid>https://fahimtu.xyz/posts/dont-click-email-attachment/</guid><description>&lt;p&gt;&lt;img src="https://fahimtu.xyz/images/email/Screenshot_2021-10-21_15-37-16.png" alt="spam/virus/scam email" title="spam/virus/scam email"&gt;&lt;/p&gt;&#10;&lt;p&gt;Recently, I got a spam email from Afinei Kosminski. I&amp;rsquo;m curious what&amp;rsquo;s inside the .xhtml in the attachment.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="https://fahimtu.xyz/images/email/Screenshot_2021-10-21_15-41-17.png" alt="inside .xhtml" title="inside .xhtml"&gt;&lt;/p&gt;&#10;&lt;p&gt;So, if I click the attachment, it will change the current tab on my browser to the url that&amp;rsquo;s&#10;base64-encoded.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="https://fahimtu.xyz/images/email/Screenshot_2021-10-21_15-44-34.png" alt="ru website" title="ru website"&gt;&lt;/p&gt;&#10;&lt;p&gt;😲&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="https://fahimtu.xyz/images/email/Screenshot_2021-10-21_15-45-10.png" alt="adult website" title="adult website"&gt;&lt;/p&gt;&#10;&lt;p&gt;😲&lt;/p&gt;</description></item><item><title>Notes...</title><link>https://fahimtu.xyz/posts/notes-misc/</link><pubDate>Sun, 26 Sep 2021 00:00:00 +0000</pubDate><guid>https://fahimtu.xyz/posts/notes-misc/</guid><description>&lt;h2 id="python-3-httpserver"&gt;Python 3 http.server&lt;/h2&gt;&#10;&lt;p&gt;Quickly sharing files via web browser&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ python -m http.server&#10;$ python -m http.server 1234&#10;$ python -m http.server 1234 --bind 127.0.0.1&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="knocking-ports-to-open-ssh-session-port-knocking-was-setup-with-iptables"&gt;Knocking Ports, to open SSH session (Port Knocking was setup with iptables)&lt;/h2&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;#!/bin/bash&#10;HOST=$1&#10;shift&#10;for ARG in &amp;#34;$@&amp;#34;&#10;do&#10;nmap -Pn --host_timeout 15 --max-retries 0 -p $ARG $HOST&#10;done&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Usage:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ sh knock.sh 172.16.0.81 8881 7777 9991&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Warrior of The Net&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=PBWhzz_Gn10"&gt;https://www.youtube.com/watch?v=PBWhzz_Gn10&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="upgrading-linux-kernel-on-gentoo"&gt;Upgrading Linux Kernel on Gentoo&lt;/h2&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ ssh -l fahmi 172.16.0.66&#10;$ tmux new -s upgrade&#10;# eselect kernel list&#10;# eselect kernel set 3 (set to the newest kernel, in my case linux-4.1.4-hardened is on the 3rd list)&#10;# cp /boot/config-3.18.9-hardened /usr/src/linux/.config&#10;# cd /usr/src/linux&#10;# make olddefconfig&#10;# uname -a&#10;Linux gentoo 3.18.9-hardened #1 SMP Tue Aug 18 13:01:38 WIB 2015 x86_64 Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz GenuineIntel GNU/Linux&#10;# make -j3&#10;# make modules_install&#10;# make install&#10;# genkernel --install initramfs&#10;# cd /boot&#10;# mkdir ~/oldkernel&#10;# mv config-3.18.9-hardened initramfs-genkernel-x86_64-3.18.9-hardened vmlinuz-3.18.9-hardened kernel-genkernel-x86_64-3.18.9-hardened ~/oldkernel/&#10;# grub2-mkconfig -o /boot/grub/grub.cfg&#10;# reboot&#10;&#10;$ ssh -l fahmi 172.16.0.66&#10;$ su -&#10;# cd /usr/src/linux&#10;# rm -r linux-3.18.9-hardened/ linux-4.0.8-hardened/&#10;# rm /boot/System.map-3.18.9-hardened /boot/System.map-genkernel-x86_64-3.18.9-hardened&#10;# rm -r /lib/modules/3.18.9-hardened/&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;a href="https://wiki.gentoo.org/wiki/Kernel/Removal"&gt;https://wiki.gentoo.org/wiki/Kernel/Removal&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Linux From Scratch 7.7 Systemd</title><link>https://fahimtu.xyz/posts/linux-from-scratch-systemd/</link><pubDate>Tue, 15 Sep 2015 00:00:00 +0000</pubDate><guid>https://fahimtu.xyz/posts/linux-from-scratch-systemd/</guid><description>&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Downloading the book (HTML version or PDF)&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ wget http://www.linuxfromscratch.org/lfs/downloads/stable-systemd/LFS-BOOK-7.7-systemd.pdf&#10;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Host System&lt;br&gt;&#10;Thinkpad X61, 2GB of RAM, Core2 Duo T8100 2.10GHz&lt;br&gt;&#10;Hardened-Gentoo x86_64&lt;br&gt;&#10;GPT Partition&lt;br&gt;&#10;172.16.0.66&lt;br&gt;&#10;Separate partition /dev/sda4, for LFS&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Host Partition:&lt;br&gt;&#10;Device          Start          End              Sectors        Size    Type&lt;br&gt;&#10;/dev/sda1      2048          6143            4096            2M      BIOS boot&lt;br&gt;&#10;/dev/sda2      6144          268287        262144        128M  Linux filesystem&lt;br&gt;&#10;/dev/sda3      268288      8656895      8388608      4G       Linux filesystem&lt;br&gt;&#10;/dev/sda4      8656896    29628415    20971520    10G     Linux filesystem&lt;br&gt;&#10;/dev/sda5      29628416  234439599  204811184  97.7G  Linux filesystem&lt;/p&gt;</description></item><item><title>Grsecurity + PaX on laptop</title><link>https://fahimtu.xyz/posts/grsec-pax-laptop/</link><pubDate>Wed, 13 May 2015 00:00:00 +0000</pubDate><guid>https://fahimtu.xyz/posts/grsec-pax-laptop/</guid><description>&lt;p&gt;About 2 weeks ago I decided to install linux-grsec on my laptop, followed the archwiki and boot the kernel. These are several things I experienced:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;can’t open palemoon&lt;/li&gt;&#10;&lt;li&gt;successfully opened gns3, but Cisco IOS won’t boot.&lt;/li&gt;&#10;&lt;li&gt;you need to install virtualbox-host-dkms and starting guest OS makes computer hang.&lt;/li&gt;&#10;&lt;li&gt;QEMU got no issue so far.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;here’s the output of dmesg that i got: &lt;br&gt;&#10;&lt;code&gt;grsec: denied RWX mmap of &amp;lt;anonymous mapping&amp;gt; by /usr/bin/dynamips[dynamips:2864] uid/euid:1000/1000 gid/egid:100/100, parent /usr/bin/gns3server[gns3server:28267] uid/euid:1000/1000 gid/egid:100/100&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Configuring TFTP Server on CentOS 6.6 &amp; Archlinux ARM</title><link>https://fahimtu.xyz/posts/tftp-centos-archlinux-arm/</link><pubDate>Fri, 23 Jan 2015 00:00:00 +0000</pubDate><guid>https://fahimtu.xyz/posts/tftp-centos-archlinux-arm/</guid><description>&lt;p&gt;In this tutorial, I’m using a Raspberry Pi and old dead-battery ThinkPad X61+docking. I installed ArchLinux ARM on Raspberry Pi and Centos 6.6 on X61. They’re gonna be used to remotely back up Cisco’s flash, startup-configuration and perform upgrade if needed. Cisco devices I’m using are Cisco Switch 2950 and Cisco Router 2621xm.&lt;/p&gt;&#10;&lt;p&gt;X61’s IP address = 172.16.0.66/26&lt;/p&gt;&#10;&lt;p&gt;Raspberry PI’s IP address = 172.16.0.67/26&lt;/p&gt;&#10;&lt;h3 id="raspberry-pi-configuration"&gt;Raspberry PI configuration&lt;/h3&gt;&#10;&lt;h4 id="install-tftp-hpa"&gt;Install tftp-hpa&lt;/h4&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[veroke@T430 ~]$ ssh fahmi@172.16.0.67&#10;fahmi@172.16.0.67&amp;#39;s password:&#10;[fahmi@alarmpi ~]$ sudo pacman -S tftp-hpa&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id="tftpdservice"&gt;tftpd.service&lt;/h4&gt;&#10;&lt;p&gt;Refer to Archwiki &lt;a href="https://wiki.archlinux.org/index.php/Tftpd_server" title="https://wiki.archlinux.org/index.php/Tftpd_server"&gt;https://wiki.archlinux.org/index.php/Tftpd_server&lt;/a&gt;, we should create a copy of the &lt;code&gt;tftpd.service&lt;/code&gt; and modify &lt;code&gt;ExecStart&lt;/code&gt; with the appropriate directory to use as the tftp root.&lt;/p&gt;</description></item><item><title>snort, psad, fwsnort, and fwknop on Arch Linux ARM (Raspberry Pi)</title><link>https://fahimtu.xyz/posts/snort-psad-fwsnort-fwknop/</link><pubDate>Fri, 23 Jan 2015 00:00:00 +0000</pubDate><guid>https://fahimtu.xyz/posts/snort-psad-fwsnort-fwknop/</guid><description>&lt;h3 id="ssh-to-your-raspberry-pi-server"&gt;ssh to your raspberry pi server&lt;/h3&gt;&#10;&lt;p&gt;&lt;code&gt;ssh fahmi@172.16.0.27&lt;/code&gt;&lt;/p&gt;&#10;&lt;h3 id="screen-session"&gt;screen session&lt;/h3&gt;&#10;&lt;p&gt;make new screen session, named snort. compiling snort, fwknop, and fwknop using Raspberry Pi is gonna take long. So, you can just leave it over night and reattach to screen session in the morning with “screen -r”. Another advantage of using screen is when you lost connection to the server, you can just reattach to the session and continue working from where you left off. Or you can just use tmux as an alternative to screen.&lt;/p&gt;</description></item></channel></rss>