Simple terminal in python

Suppose you are pentesting a web app and you have found a file upload vulnerability and have successfully uploaded a php file that has this content: <?php echo shell_exec($_GET['cmd']); ?> Everytime you need to execute command to find out more about the system that hosts that web app you may need to do something like … Continue reading Simple terminal in python

linux – Grab the ipv4 address from interface

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

[Arch Linux]Cannot fit to guest in Vmware workstation

Although Fit Guest Now was enabled after open-vm-tools was installed in Arch Linux, however clicking on Fit Guest Now did not have effect. I tried these steps and worked for me. Enable Accelerate 3D graphics in VM's display settings Install xf86-video-vmware driver sudo pacman -S xf86-video-vmware Ensure vmtoolsd starts, if not do this sudo systemctl … Continue reading [Arch Linux]Cannot fit to guest in Vmware workstation

[CentOS] Tools not included in CentOS 7 minimal

There are a few things not included in the minimal installation of CentOS 7. So here's a record on the things which I need. I have installed Arch, CentOS and Debian Linux, I need to give appreciation to the teams who have compiled the packages and easily download from the repository, because the complexity of … Continue reading [CentOS] Tools not included in CentOS 7 minimal

[Linux]Arch Linux installation until xfce desktop

This is a personal note for me if I need to install Arch Linux on virtual box again. Arch Linux is unlike Linux Mint, it only comes with a shell after installation you will need to install the software you need by using pacman. Grand reference is to use the Arch Wiki. Live CD There … Continue reading [Linux]Arch Linux installation until xfce desktop

[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