Tag: headers

Fedora

Install development tools and kernel headers for Fedora

Development Tools Installation yum groupinstall ‘Development Tools’yum groupinstall ‘Development Tools’ Kernel headers Installation yum install kernel-devel kernel-headersyum install kernel-devel kernel-headers or yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

C#, Microsoft Windows

Get HTTP headers with C#

If you would like to get HTTP headers in C#, you can do it with a few lines of code! 1 2 3 4 5 6 7 8 9 String url = "http://www.site.com";   WebRequest webrequest = HttpWebRequest.Create(url); WebResponse webresponse = webrequest.GetResponse();   foreach (String key in webresponse.Headers) Console.WriteLine("{0}: {1}", key, webresponse.Headers[key]);   webresponse.Close();String url …

Linux, Netcat, Tools

Banner grabbing with netcat!

To gather more information about a service running on a system’s open port we are going to use a known technique, known as banner grabbing and netcat network tool.  nc -nvv x.x.x.x 80 -n        Suppress name/port resolutions -v        Verbose You will get an answer like this: Connection to 85.25.132.39 80 port [tcp/*] succeeded! …

Apache, PHP, Servers/Services

Hide PHP version from hachers!

Another small step to a more secure web server is to hide PHP version. To do this you have to locate your php.ini file in your server. Usually php.ini is located in /etc or /etc/php5/apache2. 1. Make a backup of your php.ini file. 2. Open php.ini file for edit. 3. Locate line: expose_php = On …

Apache, Servers/Services

Hide Apache version from hackers

A first line of defense in web application world is to hide as much info as possible from HTTP headers! In this article we will see how easy it is to hide apache’s version number. 1. Keep a backup of file /etc/apache2/apache2.conf. 2. Open /etc/apache2/apache2.conf file for edit. For ubuntu users issue the following command: …