TCPDUMP | Network Sniffing Tool


Tcpdump is similar to what Wireshark in which i have explained earlier in my posts.  It captures packets that travels through your network into your computer disregarding whether it is from the Internet or your inner network.  Tcpdump is a command line utility whereby you would have to set the options before you proceed in capturing packets.  This application is very useful especially for network administrators as well as security analyst to analyze threats that are in the system.  Personally, i run tcpdump on my Ubuntu laptop.  To get tcpdump on your Ubuntu, type “sudo apt-get install tcpdump”.  The thing is that tcpdump runs in Linux based machines while it is called WinDump in the Windows operating system.  Basically it is up to you to run tcpdump in Linux, WinDump in Windows or Wireshark (Linux/Windows) but the most important thing is how good are you at using it.

Source: http://www.tcpdump.org/

Advertisements

Wireshark | Network Sniffing Tool


Wireshark is one of the tools that help you identify incoming and outgoing packets be it UDP or TCP level, ICMP or IP level.  Wireshark is a tool that intercepts packets and analyze them.  One of the helpful tool that helped me analyze how website POST GET works for my projects, it is considered user friendly thanks to its Graphical User Interface.  The GUI of Wireshark is one of its strong points.  You are able to look at a list of tens and thousands of packets and filter them according to your need with conditional statements.  Wireshark is capable of running in both Linux and Windows. Read the rest of this entry »

Hping | Network Security Tool


hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface is inspired to the ping(8) unix command, but hping isn’t only able to send ICMP echo requests. It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute mode, the ability to send files between a covered channel, and many other features. Read the rest of this entry »

Recovering Deleted Files and Partitions


Ever wanted to recover files that has been deleted from the Recycle Bin?  Do you know that what has been so called deleted from the Recycle Bin has merely been marked as “deleted” and not actually entirely removed from the hard drive.  You might be confused with the word delete, rubbish bin, shift+delete button and what not.  Let us first look into the context of how the entire cycle works below.  Jump straight to “Tools to recover deleted files” to download. Read the rest of this entry »

Caesar and Rot Cipher Source Code


Ever wanted a portable caesar cipher and decipher at one go? At the end of this post you will find the binary as well as the source code (built in C) for the application. Below is an image of the application testing on “abcdefgh” text.  At [+13] you can see that it is equivalent to ROT13 cipher.  For those that are familiar with command line, use application.exe “text here”.

/*
 * url:   https://genesisdatabase.wordpress.com
 * email: genesisdatabase@gmail.com
 *
 * This source code is free to be used by any programmers
 * Source code converts all uppercase to lowercase during decryption
 * Supports command line usage, use text as argument eg. crack.exe "abcdef"
 */

#include <stdio.h>
#include <string.h>
//#include <stdlib.h> /*include if using system()*/

void DecryptCaesar(char *Encrypted)
{
	char i;
	int j;

	Encrypted = strlwr(Encrypted); /*supports only lowercase*/
	//system("REM"); /*use this to copy paste in windows*/

	printf(" Caesar Cipher\n\n");
	for(i = 0 ; i < 27 ; i++)
	{
		printf(" [+%d]\t", i);
		for(j = 0 ; j < (signed)strlen(Encrypted) ; j++)
		{
			if(Encrypted[j] == ' ')
				printf(""); /*replace "" with " " if you prefer to preserve spacing*/
			else if(Encrypted[j] < 'a' || Encrypted[j] > 'z')
				printf("%c", Encrypted[j]); /*preserved non-alphabets*/
			else if(Encrypted[j] + i > 'z')
				printf("%c", Encrypted[j] + i - 26);
			else
				printf("%c", Encrypted[j] + i);
		}

		if(i == 13)
			printf(" (ROT)");

		printf("\n");
		if(i == 25)
		{
			printf(" ");
			for(j = 0 ; j < (signed)strlen(Encrypted) + 8 ; j++)
				printf("-");

			printf("\n");
		}

	}
	printf("\n");
}
int main(int argc, char **argv)
{
	char string[64 +1] = {'\0'};

	if(argc == 2)
	{
		strncpy(string, argv[1], 64);
		printf("\n");
		DecryptCaesar(string);
		return 0;
	}

	for( ; ; )
	{
		printf("\n Enter a text to encrypt/decrypt (EXIT to quit): ");

		fflush(stdin);		/*windows*/
		//fpurge(stdin);	/*linux*/

		scanf("%64[^\n]", string);

		if(string[0] == 'E' && string[1] == 'X' && string[2] == 'I' && string[3] == 'T' && string[4] == '\0')
			break;

		printf("\n\n");
		DecryptCaesar(string);
	}

	printf("\n Thanks for using...\n");
	return 0;
}

Download Binary
Download Source Code