<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ankit Kumar Agarwal &#187; script</title>
	<atom:link href="http://ankitkumaragarwal.com/category/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://ankitkumaragarwal.com</link>
	<description>Hack the way you Think!!</description>
	<lastBuildDate>Thu, 20 May 2010 05:27:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
<link>http://ankitkumaragarwal.com</link>
<url>http://ankitkumaragarwal.com/wp-content/plugins/maxblogpress-favicon/icons/favicon-56.ico</url>
<title>Ankit Kumar Agarwal</title>
</image>
		<item>
		<title>Javascrit injections</title>
		<link>http://ankitkumaragarwal.com/javascrit-injections/</link>
		<comments>http://ankitkumaragarwal.com/javascrit-injections/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 11:45:00 +0000</pubDate>
		<dc:creator>Ankit Kumar Agarwal</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://ankitkumaragarwal.com/?p=4</guid>
		<description><![CDATA[Today I have brought  for you another type of exploit of browser that is Javascript Injection.  Javascript injection is a nifty little technique that allows you to alter a  sites contents without actually leaving the site. This can be very usefull when  say, you need to spoof the server by editing [...]]]></description>
			<content:encoded><![CDATA[<p>Today I have brought  for you another type of exploit of browser that is Javascript Injection.  Javascript injection is a nifty little technique that allows you to alter a  sites contents without actually leaving the site. This can be very usefull when  say, you need to spoof the server by editing some form options. Examples will be  explained throughout.<br />
<br /><span class="fullpost"></p>
<p><span style="font-weight: bold; font-size: 130%;">Injection  Basics</span></p>
<p>Javascript injections are run from the URL bar of the page  you are visiting. To use them, you must first completly empty the URL from the  URL bar. That means no http:// or whatever.<br />
<br /><span class="fullpost"><br />
<br />Javascript is run from the URL bar by using the javascript:  protocol. In this tutorial I will only teach you the bare bones of using this,  but if you are a Javascript guru, you can expand on this using plain old  javascript.</p>
<p>The two commands covered in this tutorial are the alert();  and void(); commands. These are pretty much all you will need in most  situations. For your first javascript, you will make a simple window appear,  first go to any website and then type the following into your URL  bar:</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);">javascript:alert(&#8216;Hello,  World&#8217;);</span></p>
<p>You should get a little dialog box that says &#8220;Hello,  World&#8221;. This will be altered later to have more practical uses.</p>
<p>You can  also have more than one command run at the same time:</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);">javascript:alert(&#8216;Hello&#8217;);  alert(&#8216;World&#8217;);</span></p>
<p>This would pop up a box that said &#8216;Hello&#8217; and than  another that says &#8216;World&#8217;.</p>
<p><span style="font-size: 130%;"><span style="font-weight: bold;">Cookie Editing</span></span></p>
<p>First off, check  to see if the site you are visiting has set any cookies by using this  script:</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);">javascript:alert(document.cookie);</span></p>
<p>This  will pop up any information stored in the sites cookies. To edit any  information, we make use of the void(); command.</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);">javascript:void(document.cookie=&#8221;Field  = myValue&#8221;);</span></p>
<p>Would either make the field &#8220;authorized&#8221; or edit it  to say &#8220;yes&#8221;&#8230; now wheter or not this does anything of value depends on the  site you are injecting it on.</p>
<p>It is also useful to tack an  alert(document.cookie); at the end of the same line to see what effect your  altering had.</p>
<p><span style="font-size: 130%;"><span style="font-weight: bold;">Form Editing</span></span></p>
<p>Sometimes, to edit  values sent to a given website through a form, you can simply download that html  and edit it slightly to allow you to submit what you want. However, sometimes  the website checks to see if you actually submitted it from the website you were  supposed to. To get around this, we can just edit the form straight from  javascript. <span style="font-weight: bold;">Note:</span> The changes are only  temporary, so it&#8217;s no tuse trying to deface a site through javascript injection  like this.</p>
<p>Every form on a given webpage (unless named otherwise) is  stored in the forms[x] array&#8230; where &#8220;x&#8221; is the number, in order from top to  bottom, of all the forms in a page. Note that the forms start at 0, so the first  form on the page would actually be 0, and the second would be 1 and so on. Lets  take this example:</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);"><br />
<form action="http://www.website.com/submit.php" method="post"></span><br />
<br /><span style="font-weight: bold; color: rgb(255, 0, 0);"><br />
<input type="hidden" name="to" value="admin@website.com"></span></p>
<p>Note:Since this is the first form on  the page, it is forms[0]</p>
<p>Say this form was used to email, say vital  server information to the admin of the website. You can&#8217;t just download the  script and edit it because the submit.php page looks for a referer. You can  check to see what value a certain form element has by using this  script:</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);">javascript:alert(document.forms[0].to.value)</span></p>
<p>This  is similar to the alert(document.cookie); discussed previously. In this case, It  would pop up an alert that says &#8220;admin@website.com&#8221;</p>
<p>So here&#8217;s how to  Inject your email into it. You can use pretty much the same technique as the  cookies editing shown earlier:</p>
<p><span style="font-weight: bold; color: rgb(255, 0, 0);">javascript:void(document.forms[0].to.value=&#8221;email@nhacks.com&#8221;)</span></p>
<p>This  would change the email of the form to be &#8220;email@nhacks.com&#8221;. Then you could use  the alert(); script shown above to check your work. Or you can couple both of  these commands on one line.</p>
<p>credits:unknown<br />
<br /></span><br />
<br /></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ankitkumaragarwal.com/javascrit-injections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All About FTP</title>
		<link>http://ankitkumaragarwal.com/all-about-ftp/</link>
		<comments>http://ankitkumaragarwal.com/all-about-ftp/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 11:27:00 +0000</pubDate>
		<dc:creator>Ankit Kumar Agarwal</dc:creator>
				<category><![CDATA[ftp]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://ankitkumaragarwal.com/?p=3</guid>
		<description><![CDATA[FTPIndex of this post
About FTPWindows FTPUnix FTPFTP commandsTechnical Support
About FTP
FTP is short for File Transfer Protocol,And here is the rest of it. this page contains additional information about the FTP command and help using that command in Unix and MS-DOS (Windows). See our FTP section in our dictionary for a complete definition on FTP.
Windows FTP
From [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">FTP</span><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">Index of this post</span></p>
<p>About FTP<br />Windows FTP<br />Unix FTP<br />FTP commands<br />Technical Support<br /><span class="fullpost"></p>
<p><span style="font-weight: bold;">About FTP</span></p>
<p>FTP is short for File Transfer Protocol,And here is the rest of it. this page contains additional information about the FTP command and help using that command in Unix and MS-DOS (Windows). See our FTP section in our dictionary for a complete definition on FTP.</p>
<p><span style="font-weight: bold;">Windows FTP</span></p>
<p>From the MS-DOS prompt or shell type in FTP, once typed in you will have access to the FTP command line. In this command line type:</p>
<p>open ftp.address.domain</p>
<p>Where address is the name of the server and the domain is the domain such as .COM, .NET&#8230; In addition, the IP address can be typed in, such as 255.255.255.0.</p>
<p>Once connected you will be asked for a username and password; if done successfully, you will have access to transfer files between computers.</p>
<p><span style="font-weight: bold;">Unix FTP</span></p>
<p>Unix FTP is used much like Windows; from a command prompt or shell, type in FTP, from FTP you should be able to log into a server, providing you have the proper access.</p>
<p><span style="font-weight: bold;">FTP Commands</span></p>
<p>Depending upon the version of FTP and the operating system being used, each of the below commands may or may not work. Generally typing -help or a ? will list the commands available to you.</p>
<p>Command<br />   Information<br /><span style="font-weight: bold;">!</span>     Using this command you will have the capability of toggling back and forth between the operating system and ftp. Once back in the operating system generally typing exit will take you back to the FTP command line.<br /><span style="font-weight: bold;">? </span>    Access the Help screen.<br /><span style="font-weight: bold;">abor</span>     Abort Transfer<br /><span style="font-weight: bold;">append</span>     Append text to a local file.<br /><span style="font-weight: bold;">ascii</span>     Switch to ASCII transfer mode<br /><span style="font-weight: bold;">bell</span>     Turns bell mode on / off.<br /><span style="font-weight: bold;">binary</span>     Switches to binary transfer mode.<br /><span style="font-weight: bold;">bye</span>     Exits from FTP.<br /><span style="font-weight: bold;">cd </span>    Changes directory.<br /><span style="font-weight: bold;">cdup</span>     Change to parent directory on remote system<br /><span style="font-weight: bold;">close</span>     Exits from FTP.<br /><span style="font-weight: bold;">cwd</span>     Change working directory on remote system<br /><span style="font-weight: bold;">dele </span>    Delete file on remote system<br /><span style="font-weight: bold;">delete</span>    Deletes a file.<br /><span style="font-weight: bold;">debug</span>     Sets debugging on / off.<br /><span style="font-weight: bold;">dir</span>     Lists files if connected.</p>
<p>   dir -C = Will list the files in wide format.<br />   dir -1 = Lists the files in bare format in alphabetic order<br />   dir -r<span style="font-weight: bold;"> </span>= Lists directory in reverse alphabetic order.<br />   dir -R = Lists all files in current directory and sub directories.<br />   dir -S = Lists files in bare format in alphabetic order.<br /><span style="font-weight: bold;">disconnect</span>     Exits from FTP.<br /><span style="font-weight: bold;">get</span>     Get file from the computer connected to.<br /><span style="font-weight: bold;">glob</span>     Sets globbing on / off.<br /><span style="font-weight: bold;">hash</span>     Sets hash mark printing on / off<br /><span style="font-weight: bold;">help</span>     Access the Help screen and displays information about command if command typed after help.<br /><span style="font-weight: bold;">lcd</span>     Displays local directory or if path typed after lcd will change local directory.<br /><span style="font-weight: bold;">list</span>     Send a list of file names in the current directory on the remote system on the data connection.<br /><span style="font-weight: bold;">literal</span>     Sends command line<br /><span style="font-weight: bold;">ls</span>     Lists files if connected.<br /><span style="font-weight: bold;">mdelete</span>     Multiple delete<br /><span style="font-weight: bold;">mdir</span>     Lists contents of multiple remote directories<br /><span style="font-weight: bold;">mget</span>     Get multiple files<br /><span style="font-weight: bold;">mkd</span>     Make directory.<br /><span style="font-weight: bold;">mkdir </span>    Make directory.<br /><span style="font-weight: bold;">mls </span>    Lists contents of multiple remote directories.<br /><span style="font-weight: bold;">mode</span>     Specifies the transfer mode. Available parameters are generally S, B or C.<br /><span style="font-weight: bold;">mput</span>     Sent multiple files<br /><span style="font-weight: bold;">nlst</span>     Send a full directory listing of the current directory on the remote system on the data connection.<br /><span style="font-weight: bold;">open</span>     Opens address.<br /><span style="font-weight: bold;">pass</span>     Supplies a user password.<br /><span style="font-weight: bold;">port</span>     Specify the client port number.<br /><span style="font-weight: bold;">prompt </span>    Enables/disables prompt.<br /><span style="font-weight: bold;">put</span>     Send one file<br /><span style="font-weight: bold;">pwd</span>     Print working directory<br /><span style="font-weight: bold;">quit</span>     Exits from FTP.<br /><span style="font-weight: bold;">quote</span>     Send arbitrary ftp command<br /><span style="font-weight: bold;">recv </span>    Receive file<br /><span style="font-weight: bold;">retr</span>     Get file from remote system.<br /><span style="font-weight: bold;">remotehelp</span>     Get help from remote server<br /><span style="font-weight: bold;">rename</span>     Renames a file<br /><span style="font-weight: bold;">rmdir</span>     Removes a directory<br /><span style="font-weight: bold;">send</span>     Send single file<br /><span style="font-weight: bold;">status</span>     Shows status of currently enabled / disabled options<br /><span style="font-weight: bold;">trace </span>    Toggles packet tracing<br /><span style="font-weight: bold;">type</span>     Set file transfer type<br /><span style="font-weight: bold;">user </span>    Send new user information<br /><span style="font-weight: bold;">verbose</span>     Sets verbose on / off.<br /><span style="font-weight: bold;"><br />TECHNICAL SUPPORT</span>   </p>
<p><span style="font-style: italic; color: rgb(51, 102, 255);">How do I send and receive files once connected in MS-DOS FTP?</span></p>
<p>To get files from the server and place them in your current working directory, on the machine you are working, type:</p>
<p>get myfile.htm</p>
<p>Where myfile.htm is the name of the file you wish to get from the computer connected to.</p>
<p>To send a file from your computer to the computer you are connected to (providing you have proper rights and the file exists in the current working directory), type:</p>
<p>send myfile.htm</p>
<p>Where myfile.htm is the name of the file that exists in the current directory; if you cannot recall the name of the file, use the ! command to temporally get back to a MS-DOS prompt; once you have located the file name, type exit to get back to the location you left in FTP.</p>
<p><span style="font-style: italic; color: rgb(51, 102, 255);">In MS-DOS FTP I am only able to send files in the directory that I typed FTP in.</span></p>
<p>Set the LCD, for example, if you want to send files that are in the C:\Windows directory, type:</p>
<p>LCD c:\windows</p>
<p><span style="font-style: italic; color: rgb(51, 102, 255);">How do I download multiple files from an FTP server?</span></p>
<p>Use the mget command, which is short for multiple get. Using the mget command you can get multiple files by using wildcards. For example, &#8221; mget *.* &#8221; would get all files in the current directory.</p>
<p>By default, prompting would be enabled; if you wish to get all files without being prompted, use the &#8220;prompt&#8221; command to disable/enable prompting.</p>
<p><span style="font-style: italic; color: rgb(51, 102, 255);">When attempting to connect to an FTP address, receiving &#8220;10061&#8243; error</span></p>
<p>This error is caused when the server is refusing the connection.</p>
<p>Attempt to connect to an alternate FTP address.</p>
<p>If you are able to connect to other FTP addresses, it is likely the site generating the error 10061 is refusing to accept your connection because of security privileges or because it is not an FTP server.</p>
<p>If you are unable to connect to any address, it is likely an issue with the network or computer configuration.</p>
<p>  1. Ensure that the network configuration settings are properly setup as well as FTP rights.<br />  2. Verify that the firewall is properly setup to accept FTP access.</p>
<p><span style="font-style: italic; color: rgb(51, 102, 255);">How to create a Windows FTP script</span></p>
<p>Create a text document with commands used when in FTP. Below is an example of what such a script may look like:</p>
<p>open ftp.domain.com<br />username<br />password<br />cd public_html<br />dir<br />get file.txt<br />bye</p>
<p>The above script will log into the ftp site ftp.domain.com. Once connected, it will enter the username and then the password (substitute username for your username and password for your password). Once logged in, the script then goes into the public_html directory, gets a directory listing and then uses the get command to get the file called file.txt. Once the file is received, it logs off using the bye command.</p>
<p>Once the script file has been created, for example, if it was called script.txt, to execute this script with ftp you would type:</p>
<p>ftp -s:script.txt</p>
<p>credits:-unknown<br /></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ankitkumaragarwal.com/all-about-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
