Solutionist's Blog

Tech | Health | Life | Travel

php script to show visitors IP

  Create a .php file   # vi  showip.php   <h1>My Ip Address</h1><hr> <br><br> Your Ip Address is: <strong><?php echo $_SERVER[‘REMOTE_ADDR’]; ?></strong><br><br>   Close the file and  done RESULT http://admin2.mweb.com.na/showip.php    

30 Nmap Examples

I have found the post from NIXCRAFT very interesting , it literally make a network admins life easier   #1: Scan a single host or an IP address (IPv4) ### Scan a single ip address ### nmap 192.168.1.1 ## Scan a host name ### nmap server1.cyberciti.biz ## Scan a host name with more info### nmap -v […]

biggest DD0S Attack

The last month has seen probably the largest distributed denial-of-service (DDoS) attack ever. A massive 300Gbps was thrown against Internet blacklist maintainer Spamhaus’ website but the anti-spam organisation , CloudFlare was able to recover from the attack and get its core services back up and running. Spamhaus, a group based in both London and Geneva, is […]

add static route in Cantos and make sure it wont loose after reboot

1. Adding Routes [root@localhost ~]# route add -net 10.4.3.0 netmask 255.255.255.0 gw 192.168.129.55 [root@localhost ~]# Or [root@localhost ~]# route add -net 10.4.2.0 netmask 255.255.255.0 dev eth0 [root@localhost ~]# 2. Show routing table [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.129.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 10.4.3.0 192.168.129.55 […]

Find out the IP address of eth0 and display IP only

  Now you just wanted the IP address, use grep to get the IP: $ /sbin/ifconfig eth0| grep ‘inet addr:’Output: inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 To get IP address from use cut command: $ /sbin/ifconfig eth0 | grep ‘inet addr:’ | cut -d: -f2Output: 192.168.2.1 Bcast Finally remove Bcast with awk $ /sbin/ifconfig eth0 | grep […]

How to setup an NFS share from Mac OSX Server to Linux

Set up the NFS share Download NFS Manager from www.bresink.com/products.html. It’s very low-cost shareware but you can use it free if you don’t mind an occasional pop-up reminder. You could probably set things up without NFS Manager, but it makes things a heck of a lot simpler. Using NFS Manager, add a new share, browsing for the directory […]

install NFS server Centos / Red hat

1. Install NFS and Create Directories The first step is to create a NFS server if one is not already set up. The client OS filesystem lives (is stored) on that NFS server. As part of the PXE boot process a host with a PXE boot enabled network card, will issue a broadcast for a […]

Secured By miniOrange