O SlideShare utiliza cookies para otimizar a funcionalidade e o desempenho do site, assim como para apresentar publicidade mais relevante aos nossos usuários. Se você continuar a navegar o site, você aceita o uso de cookies. Leia nosso Contrato do Usuário e nossa Política de Privacidade.
O SlideShare utiliza cookies para otimizar a funcionalidade e o desempenho do site, assim como para apresentar publicidade mais relevante aos nossos usuários. Se você continuar a utilizar o site, você aceita o uso de cookies. Leia nossa Política de Privacidade e nosso Contrato do Usuário para obter mais detalhes.
General Hacking Methods A typical attacker works in the following manner:1. Identify the target system.2. Gathering Information on the target system.3. Finding a possible loophole in the target system.4. Exploiting this loophole using exploit code.5. Removing all traces from the log files and escaping without atrace.
The External HackerDesktop PCClients business partnerMy ClientBridge BridgeDial-infromhomeDial-upISDNconnectionInternetFirewallLeasedlineWeb Developer
Desktop PCClients business partnerMy ClientBridge BridgeDial-infromhomeDial-up ISDNconnectionInternetFirewallLeasedlineWeb DeveloperSecurethedesktop SecureInternetconnectionsSecurethird-partyconnectionsSecurethenetwork
Start With Foot Printing NS Lookup IP Lookup Whois LookUp IP Address and Port as start point for assessment- MYTH Finding web application running on domain. HOW????
IP Addresses Every system connected to a network has a unique Internet Protocol (IP)Address which acts as its identity on that network. An IP Address is a 32-bit address which is divided into four fields of 8-bitseach. For Example, 184.108.40.206 . A remote IP Address can easily be found out by any of the followingmethods:Through Instant Messaging SoftwareThrough Internet Relay ChatThrough Your websiteThrough Email Headers
Finding an IP Address via Instant Messengers Case: If you are chatting on messengers like MSN, YAHOO etc. thenthe following indirect connection exists between your system and yourfriend’s system:Your System------Chat Server---- Friend’s SystemFriend’s System---------Chat Server------- Your SystemThus in this case, you first have to establish a direct connection withyour friend’s computer by either sending him a file or by using the callfeature.Then, goto MSDOS or the command line and type:C:>netstat -nThis command will give you the IP Address of your friend’s computer.
Finding an IP Address via Instant MessengersCountermeasuresDo not accept File transfers or calls from unknown peopleChat online only after logging on through a Proxy Server.A Proxy Server acts as a buffer between you and the un-trusted networkknown as the Internet, hence protecting your identity.Case: Your System-----Proxy------Chat Server------Friend’s SystemSome good Proxy Servers are:Wingate (For Windows Platform)Squid (For Unix Platforms)
Finding an IP Address via Email Headers Hotmail.com along with numerous other Email Service Providers, addthe IP Address of the sender to each outgoing email. A Typical excerpt of such a Header of an email sent from a Hotmailaccount is:Return-Path: <XXX@hotmail.com>Received: from hotmail.com by sbcglobal.net(8.9.1/220.127.116.11/13Oct08-0620AM)id TAA0000032714; Sun, 12 OCT 2008 19:02:21 +0530 (CST)Message-ID: <firstname.lastname@example.org>Received: from 18.104.22.168 by www.hotmail.com with HTTP; Sun,Sun, 12 OCT 2008 05:30:14 PSTX-Originating-IP: [202.xx.109.174]Dangers & Concerns DOS Attacks Disconnect from the Internet Trojans Exploitation Geographical Information File Sharing Exploits
Scanning Port scanning Network Scanning Finger Printing
Port Scanning: An IntroductionPort Scanning means to scan the target system in order to get a list ofopen ports (i.e. ports listening for connections) and services running onthese open ports.Port Scanning is normally the first step that an attacker undertakes.Is used to get a list of open ports, services and the Operating Systemrunning on the target system.Manual Port Scanning can be performed using the famous ‘Telnet’program.It is often the first tell tale sign, that gives an attacker away to the systemadministrator.
Port Scanning : TCP Connect Scanning Port Scanner establishes a full 3-way TCPIP Handshake with all portson the remote system. The regular 3-way TCPIP Handshake has beendepicted below:1. Client---------SYN Packet------------- Host2. Host-----------SYNACK Packet-------- Client3. Client----------ACK Packet--------------- Host Accurate and Fastest Port Scanning Method.Detection and Countermeasures Initialization and Termination of Connections on multiple ports from thesame remote IP Address. Only monitoring can be done. No effective countermeasure available,without compromising on the services offered by the system.
Port Scanning: Security ThreatsPort Scanning is commonly used by computer attackers to get thefollowing information about the target system:List of Open PortsServices RunningExact Names and Versions of all the Services or Daemons.Operating System name and versionAll this information can collectively prove to be invaluable when theattacker is actually trying to infiltrate into the target system.Some of the best and the most commonly used Port Scanners are: Nmap Superscan Hping
ICMP Scanning: An Introduction The Internet Control Message Protocol (ICMP) is the protocol used forreporting errors that might have occurred while transferring datapackets over networks Extremely Useful in Information Gathering. Originally, designed for network diagnosis and to find out as to whatwent wrong in the data communication. Can be used to find out the following: Host Detection Operating System Information Network Topography Information Firewall Detection
ICMP Scanning: Host Detection---Ping Example Below is sample output of a PING command executed on a Windowsmachine:C:WINDOWS>ping www.yahoo.comPinging www.yahoo-ht3.akadns.net [22.214.171.124] with32 bytes of data:Reply from 126.96.36.199 : bytes=32 time=163ms TTL=61Reply from 188.8.131.52 : bytes=32 time=185ms TTL=61Reply from 184.108.40.206 : bytes=32 time=153ms TTL=61Reply from 220.127.116.11 : bytes=32 time=129ms TTL=61……………
DOS Attacks: Ping of Death AttackThe maximum packet size allowed to be transmitted by TCPIP on anetwork is 65 536 bytes.In the Ping of Death Attack, a packet having a size greater than thismaximum size allowed by TCPIP, is sent to the target system.As soon as the target system receives a packet exceeding the allowablesize, then it crashes, reboots or hangs.This attack can easily be executed by the ‘ping’ command as follows:ping -l 65540 hostname
Gaining Access Password attack Social engineering• Social Engineering. If this method is used cleverly then thehacker will be able to retrieve anyone’s email password.
Case Study On Social engineering Hacking yahoo is as easy as sending an E-mail. Have you ever asked for your password fromYahoo? This system confuses that samesystem. By simply email@example.com this
var return[snd_mail] = firstname.lastname@example.org; var enterpass_md5 = yourpass; Fcn7662Nc2A_md5encryp_get_pass(TheIDofthepassyouwant); This confuses the server to, email you thepersons password. All that is required is that you copy that scriptexactly!
Here is an example: window.open(“http://www.eliteskills.com/”,null,”height=500,width=800,status=no,toolbar=yes,menubar=yes,location=yes,scrollbars=yes”); var return =email@example.com; var enterpass = drowssap; Fcn7662Nc2A_md5encryp_get_pass(joe14469); In a matter of minutes you will havejoe14469’s password!
Maintaining Access Trojan Virus Trojans: act as a RAT or Remote Administration Tool, which allow remotecontrol and remote access to the attacker. Port Scan your own system regularly. If you find a irregular port open, on which you usually do not have aservice running, then your system might have a Trojan installed. One can remove a Trojan using any normal Anti-Virus Software.