0% found this document useful (0 votes)
18 views3 pages

ACP84008

The document contains code for automatically registering an account on a website. It handles filling out registration forms, submitting captcha values obtained from an API, and checking for a successful registration response.

Uploaded by

pielabvn1
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

ACP84008

The document contains code for automatically registering an account on a website. It handles filling out registration forms, submitting captcha values obtained from an API, and checking for a successful registration response.

Uploaded by

pielabvn1
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

'Option Explicit Off Option Strict Off Imports SENuke Imports SENuke.

CommonHelper Namespace ACP84008 Public Class Processor Inherits WebRequestSubmitter.ACPTaskBase Protected Property uid As String Protected Property sAns As String Public Overrides Function ProfileAC(ByVal stepidx As Integer) As Boolean With IEfrm If .FillError = True Then On Error Resume Next End If Select Case stepidx Case 1 IE.ClearClientHeaders() IE.ClearpostParameters() WBStatus("Signing up...") IE.Navigate2("http://abcjazz.net.au/user/register") .cStep = .cStep + 1 Case 2 IE.AddHiddenPostParameters("pass[pass1]") IE.AddPostParameter("name", USER) IE.AddPostParameter("mail", Email) IE.AddPostParameter("pass[pass1]", Pass) IE.AddPostParameter("pass[pass2]", Pass) IE.AddPostParameter("profile_firstname", FName) IE.AddPostParameter("profile_lastname", LName) IE.AddPostParameter("profile_phone_number", "") IE.AddPostParameter("profile_aboutme", "") IE.AddPostParameter("terms_of_use", "1") IE.AddPostParameter("op", "Create new account") IE.AddPostParameter("unrequiredfield", "") If FindItem("input", "captcha_response") IsNot Nothing T hen Dim element = FindItem("input", "captcha_response"). ParentNode Dim elements = element.SelectNodes(".//span") If elements.Count = 2 Then If element.InnerHtml.Contains("field-prefix") Th en Dim a = elements(0).InnerText.Trim.Replace(" ", "+").Replace("+equals", "") sAns = IE.DownloadString("http://www.wolfram alpha.com/input/?i=" & a) .cStep = .cStep + 1 ElseIf element.InnerHtml.Contains("field-suffix" ) Then Dim a = elements(0).InnerText.Trim.Split(" "

) framalpha.com/input/?i=" & If a(0) = "plus" Then sAns = IE.DownloadString("http://www.wol a(3) & "+minus+" & a(1)) .cStep = .cStep + 1 ElseIf a(0) = "minus" Then sAns = IE.DownloadString("http://www.wol a(3) & "+plus+" & a(1)) .cStep = .cStep + 1 ElseIf a(0) = "times" Then sAns = IE.DownloadString("http://www.wol a(3) & "+devide+" & a(1)) .cStep = .cStep + 1 ElseIf a(0) = "devide" Then sAns = IE.DownloadString("http://www.wol a(3) & "+times+" & a(1)) .cStep = .cStep + 1 End If End If ElseIf elements.Count = 3 Then Dim a = FindItem("span", "field-prefix").InnerTe Dim b = FindItem("span", "field-suffix").InnerTe xt.Trim.Split(" ") alpha.com/input/?i=" & b(1) If a(1) = "plus" Then sAns = IE.DownloadString("http://www.wolfram & "+minus+" & a(0)) .cStep = .cStep + 1 ElseIf a(1) = "minus" Then sAns = IE.DownloadString("http://www.wolfram & "+minus+" & b(1)) .cStep = .cStep + 1 ElseIf a(1) = "times" Then sAns = IE.DownloadString("http://www.wolfram & "+devide+" & a(0)) .cStep = .cStep + 1 ElseIf a(1) = "devide" Then sAns = IE.DownloadString("http://www.wolfram & "+devide+" & b(1)) .cStep = .cStep + 1 End If End If

framalpha.com/input/?i=" &

framalpha.com/input/?i=" &

framalpha.com/input/?i=" &

xt.Trim.Split(" ")

alpha.com/input/?i=" & a(0)

alpha.com/input/?i=" & b(1)

alpha.com/input/?i=" & a(0)

Else .cStep = .cStep + 1 End If Case 3 sAns = ExtractOne(sAns, "id=""i_0200_1"" alt=""(.*?)""") For i As Integer = 1 To 10000 Step 1 If i Mod 2 = 0 Then Dim j = i / 2 + 1 If j Mod 2 = 0 Then Dim k = i / 2 + 1 End If End If Next If sAns IsNot Nothing Then IE.AddPostParameter("captcha_response", sAns) End If IE.AddRequestHeader("Referer", IE.LocationUrl)

IE.AddRequestHeader("Accept", "text/html,application/xht ml+xml,application/xml;q=0.9,*/*;q=0.8") IE.SubmitHttpPost3(IE.LocationUrl) .WaitText = "already taken already registered has been s ent" : .IsWaiting = True : .cStep = .cStep + 1 Case 4 WBStatus("Account Created!") ProfileAC = True End Select End With End Function End Class End Namespace

You might also like