<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Notes on fahmi's website</title><link>https://fahimtu.xyz/tags/notes/</link><description>Recent content in Notes 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/notes/index.xml" rel="self" type="application/rss+xml"/><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></channel></rss>