I have an active interface on eth0, by issuing ip a sh dev eth0 the information displays as below. 2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:0c:29:97:69:0c brd ff:ff:ff:ff:ff:ff inet 192.168.1.232/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 valid_lft 4857sec preferred_lft 4857sec inet6 fe80::20c:29ff:fe97:690c/64 scope link noprefixroute valid_lft forever … Continue reading linux – Grab the ipv4 address from interface
Tag: linux
[linux]Enumerating subdomain
A server has a dns service and its ip address is 10.10.10.13, so I use nslookup and change the server to 10.10.10.13, and find out what is its fqdn. It is revealed that its fqdn is ns1.cronos.htb, so I am guessing the domain name would be cronos.htb too. To find out its sub domains in … Continue reading [linux]Enumerating subdomain
[linux] named pipe
I am learning new things while attempting hackthebox machines, one of the thing I learned about linux is the named pipe. To identify whether the file is a named pipe you can list like this: But if you try to read the content of the /tmp/f the screen will seem like hang... Because this file … Continue reading [linux] named pipe
[python] Improving get_project_dirs method of SSHClient subclass
I noticed I did not have enough testing on my code for getting directories under base project directory. This is part of the code snippet of my SSHClient subclass: The problem The method gets all things under the base directory that is files and directories, that is because I have sliced and diced too much … Continue reading [python] Improving get_project_dirs method of SSHClient subclass
[Arch Linux]Could not boot to Arch and stuck in grub shell
I have made the grub configuration with grub-mkconfig -o /boot/grub/grub.cfg in the arch-chroot environment, after i generated the grub config I exited from the arch-chroot and unmount the /mnt then reboot, Arch could not be booted but instead my console was stucked in grub. this is because I have not downloaded the linux-firmware which includes … Continue reading [Arch Linux]Could not boot to Arch and stuck in grub shell
[python]Netifaces module
Netifaces is a python module maintained by Alastair and opalmer, I have been benefited by this module a lot. It is easy to use and there are a lot of possibilities with this module. Here are some examples of usage and finally there will be a code of automatic mac address changer without user to … Continue reading [python]Netifaces module
OS: Patching the linux kernel with grsecurity patch
I have been wanted to do linux kernel hardening a long time ago. I first heard about grsecurity from my friend William who is a security enthusiast. I have read several guides on how to patch the kernel source code but by far this article is the best. I am using CentOS 6.4 for the … Continue reading OS: Patching the linux kernel with grsecurity patch
Linux: To change background of GDM3
Step 1: Edit this file /etc/gdm3/greeter.gconf-defaults sudo gedit /etc/gdm3/greeter.gconf-defaults Look for #Use specific background Uncomment or add your own line (The absolute path to myimage.jpg is an example on where my image is) /desktop/gnome/background/picture_filename /home/user/wallpaper/myimage.jpg Step2 : sudo dpkg-reconfigure gdm3 This reconfigure the gdm3 config, without doing this your gdm background image … Continue reading Linux: To change background of GDM3
Debian: Checking your Linux for potential rootkit
You have been tasked to set up a Linux server, you have just installed the core packages of debian with debian small CD. After installation is completed, you download two rootkit checkers: apt-get update #To ensure you have the latest package database. apt-get upgrade #To ensure you have the latest package with security holes patched. … Continue reading Debian: Checking your Linux for potential rootkit
Wireshark for Linux: No interface is listed.
You are using Debian, you installed wireshark, launched it and found that there was no interface (under interface list) for wireshark to capture; you checked /etc/group and did not find a group known as wireshark, then it is most likely libpcap-dev not installed. sudo apt-get install libpcap-dev sudo dpkg-reconfigure wireshark-common. A ncurse screen appears asking … Continue reading Wireshark for Linux: No interface is listed.