Jan 8, 2014

Howto: Simple shell script for checking network service still alive

This bash script use nmap to scan port of server to check network service available.

#!/bin/bash
result=`nmap -Pn -p 80 $HOST | grep open`
if [ "$result" != "" ]
then
        echo "Is alive"
else
        echo "Is down"
fi

 



If you like my blog, Please Donate Me
Or Click The Banner For Support Me.

Jan 6, 2014

Howto: Install Snort-Wireless

1. Download Snort-wireless
- wget "http://www.snort-wireless.org/files/snort-wireless-2.4.3-alpha04.tar.gz"


2.  Install required lib
- apt-get install libdnet libdnet-dev libpcre3 libpcre3-dev gcc make flex byacc bison linux-headers-generic libxml2-dev libdumbnet-dev zlib1g zlib1g-dev -y

3. Extract zip file and get into folder
- tar xzvf snort-wireless-2.4.3-alpha04.tar.gz
- cd snort-wireless-2.4.3-alpha04

4. Compile it
- ./configure

5. Fix error "'__open_missing_mode' declared with attribute error: open with O_CREAT" with edit "src/preprocessors/flow/portscan/server_stats.c"
- vim vim src/preprocessors/flow/portscan/server_stats.c

6. Change from line 328
fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY);
to
fd = open(filename, O_CREAT, S_IRUSR|S_IWUSR|O_TRUNC|O_SYNC|O_WRONLY);


7. Install it
- make && make install




If you like my blog, Please Donate Me
Or Click The Banner For Support Me.

Tools: Pinpoint - Tools for extract component of website

Pinpoint works like wget/curl in that it just fetches a webpage without rendering any script. Pinpoint will then try to determine which links are used to make up the webpage such as Javascript, CSS, frames, and iframes and downloads those files too (some Javascript content will produce incorrect links).


Source: http://www.kahusecurity.com/2014/pinpoint-tool-released/



If you like my blog, Please Donate Me
Or Click The Banner For Support Me.

Checking you've pwed or not?

Great website for check you've pwned or not?







If you like my blog, Please Donate Me
Or Click The Banner For Support Me.
 

Sponsors

lusovps.com

Blogroll

About

 Please subscribe my blog.

 Old Subscribe

Share |