zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Webserver Benchmark

December 6, 2010 by Igor Drobot Leave a Comment

ab (Apache Benchmark) is a tool for benchmarking your HTTP server. It provides a quick an easy way to evaluate your http serving capabilities. ab overloads the server with http requests and measures the time it takes to serve all those requests.

How to install ab and where to get it? The real thing is that ab comes preconfigured with your apache installation. Apache by himself is just an extension command for the Apache Web Server. So if you have already installed Apache, then you should be able to run ab.

What we need in order to get ab to work is type the command and append the URL address we want to test. The command is issued as follows.

1
server ~ # ab -n10000 -c8 http://piper/

server ~ # ab -n10000 -c8 http://piper/

1
2
# Number of connections to send to the server
-n

# Number of connections to send to the server -n

1
2
# Number concurrent requests to be made
-c

# Number concurrent requests to be made -c

1
2
# Option activates the KeepAlive feature
-k

# Option activates the KeepAlive feature -k

1
2
# Is the timelimit (in seconds)
-t

# Is the timelimit (in seconds) -t

ab testing mechanism actually is a good example of a Denial of Service (DoS) attack.

Filed Under: Bash, Linux Tagged With: AB, Apache, Benchmark, DOS, Lighttpd

Nikto – vulnerabilities scanner

December 6, 2010 by Igor Drobot Leave a Comment


Nikto is an Open Source (GPL) web server scanner which scans your webserver against more than 3500 dangerous files/CGIs, outdated version checking, It has a very good plugin support
Official site

To install in ubuntu / debian

1
$ apt-get install nikto

$ apt-get install nikto

For simple test:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
firewall ~ # nikto -h debianuser.org
---------------------------------------------------------------------------
- Nikto 2.02/2.03     -     cirt.net
+ Target IP:       188.40.116.206
+ Target Hostname: debianuser.org
+ Target Port:     80
+ Start Time:      2010-12-07 10:45:55
---------------------------------------------------------------------------
+ Server: Apache
+ OSVDB-3092: GET /img/ : This may be interesting...
+ OSVDB-3268: GET /icons/ : Directory indexing is enabled: /icons
+ 4347 items checked: 2 item(s) reported on remote host
+ End Time:        2010-12-07 10:49:45 (230 seconds)
---------------------------------------------------------------------------
+ 1 host(s) tested

firewall ~ # nikto -h debianuser.org --------------------------------------------------------------------------- - Nikto 2.02/2.03 - cirt.net + Target IP: 188.40.116.206 + Target Hostname: debianuser.org + Target Port: 80 + Start Time: 2010-12-07 10:45:55 --------------------------------------------------------------------------- + Server: Apache + OSVDB-3092: GET /img/ : This may be interesting... + OSVDB-3268: GET /icons/ : Directory indexing is enabled: /icons + 4347 items checked: 2 item(s) reported on remote host + End Time: 2010-12-07 10:49:45 (230 seconds) --------------------------------------------------------------------------- + 1 host(s) tested

Filed Under: Bash, Debian, Linux, MySQL Tagged With: apache security, Nikto, Security scanner, vulnerabilities finder

Create Nagios Icons

December 2, 2010 by Igor Drobot Leave a Comment

Nagios

If you ever tried to make Nagios Status-Map a little nicer by adding some dependencies and some pretty icons, you have probably came across some little collections/packs of icons at NagiosExchange.
But if you need a special one, you must do it by yourself.
And you probably noticed that you need images with .gd2 extension
Here is how to convert a PNG image into .gd2 (GD Graphics Library format)

Solution one:

1
aptitude install netpbm

aptitude install netpbm

1
pngtopnm example.png | pnmtopng -transparent =rgb:00/00/00 2>/dev/null | pngtogd2 /proc/self/fd/0 example.gd2 0 1

pngtopnm example.png | pnmtopng -transparent =rgb:00/00/00 2>/dev/null | pngtogd2 /proc/self/fd/0 example.gd2 0 1

Solution two:

1
aptitude install libgd-tools

aptitude install libgd-tools

1
pngtogd2 phone.png phone.gd2 0

pngtogd2 phone.png phone.gd2 0

Filed Under: Bash, Linux, Monitoring Tagged With: Monitoring, Nagios, Nagios convert gd2, Nagios3

Understanding FTP using commands

November 29, 2010 by Igor Drobot Leave a Comment

FTP and SMTP are simple text based protocols, I show you how to get some files without a graphical FTP-Client.

Connect with Telnet:

1
2
3
4
5
6
id@acer:~$ telnet debianuser.org 21
Connected to debianuser.org.
USER anonymous
PASS anonymous
PASV
RETR deli-0.8.0-core.iso

id@acer:~$ telnet debianuser.org 21 Connected to debianuser.org. USER anonymous PASS anonymous PASV RETR deli-0.8.0-core.iso

[Read more…]

Filed Under: Bash, FTP, Linux Tagged With: command line ftp, FTP

Make your linux speaking

November 28, 2010 by Igor Drobot Leave a Comment

Speaker

1
echo 'you are a loser' | festival --tts

echo 'you are a loser' | festival --tts

1
for count in $(seq 1 10) ; do espeak "Go Away" ; done

for count in $(seq 1 10) ; do espeak "Go Away" ; done

Make speaker louder:

1
2
3
4
amixer -c 0 sset Master,0 100%;
amixer set Master 100%
# or
amixer set PCM 100%

amixer -c 0 sset Master,0 100%; amixer set Master 100% # or amixer set PCM 100%

Another funny things:

1
2
export DISPLAY=:0
xmessage 'YOU ARE BEING WATCHED. MUHAHAHAHahaha'

export DISPLAY=:0 xmessage 'YOU ARE BEING WATCHED. MUHAHAHAHahaha'

Filed Under: Bash, Fun, Linux Tagged With: alsamixer, espeak, Fun

  • « Previous Page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok