Jump to content

Bot


Recommended Posts

I want make a bot for this site http://www.net-force.nl/challenge/level603/

but I've got the next problem:

the site doesn't have a form name

thus:

this is the source code of that site:

<form method="post" action="index.php">

it doesn't got a name variable :S

if i use this code

#include <IE.au3>
$oIE = _IECreate ("http://www.net-force.nl/challenge/level603/")
$oForm = _IEFormGetObjByName ($oIE, "name??")
$oQuery = _IEFormElementGetObjByName ($oForm, "password")
_IEFormElementSetValue ($oQuery, "naam")
_IEFormSubmit ($oForm)

can I not submit this site :S, can any body help me please?

Edited by peter123
Link to comment
Share on other sites

_IEFormSubmit ($oForm)

or

_IEFormSubmit ($oForm, 0)

they r not working on this site, dono why...

the only thing that worked is this :/

#include <IE.au3>
$oIE = _IECreate ("http://www.net-force.nl/challenge/level603/")
WinSetState(":: Net-Force Challenge", "", @SW_MAXIMIZE)
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
_IEFormElementSetValue ($oQuery, "myNaMe");your username heare
ControlClick(":: Net-Force Challenge", "", "", "", 1, 10, 10)
Sleep(100)
ControlSend(":: Net-Force Challenge", "", "", "{Tab}")
Sleep(100)
ControlSend(":: Net-Force Challenge", "", "", "{Enter}")

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

#include <IE.au3>

$url = "http://www.net-force.nl/challenge/level603/"
$value = ""

$oIE = _IECreate($url, 1)
$oForm = _IEFormGetCollection($oIE, 0)
$oInput = _IEFormElementGetObjByName($oForm, "password")
$oSubmit = _IEFormElementGetObjByName($oForm, "submit")
_IEFormElementSetValue($oInput, $value)
_IEAction($oSubmit, "click")
_IELoadWait($oIE)

Some forms have Javascript tied to the onclick event of the submit button, but that doesn't look to be the case here. I'm not sure why a form submit wouldn't work. In any case, clicking the submit button will yield the desired result.

Edit: I left a ConsoleWrite() in there by accident.

Edited by mikehunt114
IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...