Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[GUIDE] How to create iMacros scripts for promotional events

What is this thread?

Recently there has been a lot of talk about the Skittles XBL promotion. In this section whenever there is a promotional event there will be threads created where users share tips/tricks or brag about current codes they have gathered. When I first saw the thread by BlueTigerSlayer I decided to create a quick iMacros script and gathered 1,000 codes with the gmail dot trick.

[+] If you have a problem, view the frequently asked questions below. Most likely your answer is there.

[+] You need iMacros in order to use this tutorial
[+] You will need an email list to take full use of the script. I released this tutorial mainly because the dot trick was patched and users will be needing this thread later.
[+] You need an Imagetyperz account with credits to solve the captcha.

[+] If you want to use proxies on Rotation follow these instructions:
[1] Download the add-on for firefox called "Proxy Tool"
[2] Right click on the bottom right of the browser and go to import proxies and paste in the proxy list.
[3] Then right click the icon again and go to settings.
[4] Select "Rotate Proxy on every new window/tab."
[4.1] Then that way when you play the script on loop you will be filling out the information from a new proxy every time.

If you don't watch the video and post with questions that are explicitly answered in there then I will not help you. I won't even respond. The video goes over literally anything you need to know about completing these types of offers with iMacros.

------

Video Tutorial






------
Code
------

The code can be found here at this pastebin link or via the code form below.
http://pastebin.com/geRPQ4X2
Code
SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE C:\Users\NAME\Documents\iMacros\Datasources\emails.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !LOOP 1
TAB T=1
CLEAR
URL GOTO=http://ssl.skittles.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:Header_ecCode_txtCode CONTENT=m95mn
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=ID:Header_ecCode_btnCodeSubmit
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtFirstName CONTENT=bob
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtLastName CONTENT=vance
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtEmail CONTENT={{!COL1}}
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBMonth CONTENT=%02
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBYear CONTENT=%1987
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBDay CONTENT=%16
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_chkXBoxNo CONTENT=YES
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_chkTerms CONTENT=YES
WAIT SECONDS=2
TAB OPEN
TAB T=1
FILEDELETE NAME=C:\Users\NAME\Desktop\image.jpg
ONDOWNLOAD FOLDER=C:\Users\NAME\Desktop FILE=image.jpg
TAG POS=1 TYPE=IMG ATTR=ID:recaptcha_challenge_image CONTENT=EVENT:SAVEPICTUREAS
TAB T=2
URL GOTO=http://Captchatypers.com/Forms/FileUploadAndGetText.htm
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:UploadFileAndGetText.ashx ATTR=NAME:username CONTENT=USERNAME
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:UploadFileAndGetText.ashx ATTR=NAME:password CONTENT=PASSWORD
TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:UploadFileAndGetText.ashx ATTR=NAME:file CONTENT=C:\Users\NAME\Desktop\image.jpg
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:UploadFileAndGetText.ashx ATTR=VALUE:Submit
TAG POS=1 TYPE=PRE ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
WAIT SECONDS=2
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:recaptcha_response_field CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_btnSubmit

Second version does not have a captcha solver. Instead a popup will prompt you to enter the captcha and you can enter the details and it will be posted in the response field then hit submit.
http://pastebin.com/v0x1iEBJ
Code
SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE C:\Users\Dillon\Documents\iMacros\Datasources\emails.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !LOOP 1
TAB T=1
URL GOTO=http://ssl.skittles.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:Header_ecCode_txtCode CONTENT=m95mn
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=ID:Header_ecCode_btnCodeSubmit
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtFirstName CONTENT=bob
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtLastName CONTENT=vance
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtEmail CONTENT={{!COL1}}
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBMonth CONTENT=%02
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBYear CONTENT=%1987
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBDay CONTENT=%16
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_chkXBoxNo CONTENT=YES
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_chkTerms CONTENT=YES
WAIT SECONDS=2
PROMPT "Please enter the captcha:" !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:recaptcha_response_field CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_btnSubmit
CLEAR

This Code is courtesy of Trebar. This uses the DBC api instead.
Code
TAB OPEN
TAB T=2
URL GOTO=http://api.deathbycaptcha.com/decaptcher?function=picture2&print_format=html
TAG POS=1 TYPE=INPUT ATTR=NAME:username CONTENT=User
TAG POS=1 TYPE=INPUT ATTR=NAME:password CONTENT=Password
TAG POS=1 TYPE=INPUT ATTR=NAME:pict CONTENT=C:\Users\YourUser\Documents\iMacros\Datasources\image.jpg
TAG POS=1 TYPE=INPUT ATTR=TYPE:submit
WAIT SECONDS=5
TAG POS=6 TYPE=TD ATTR=* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
WAIT SECONDS=2
TAB CLOSE
And the complete code :
Code
VERSION BUILD=8810214 RECORDER=FX
SET !DATASOURCE C:\Users\Your User\Documents\iMacros\Datasources\mails.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !LOOP 1
CLEAR
TAB T=1
URL GOTO=http://ssl.skittles.com/Default.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:Header_ecCode_txtCode CONTENT=M95MN
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=ID:Header_ecCode_btnCodeSubmit
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtFirstName CONTENT=fdsddsfdsds
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtLastName CONTENT=sdfdffds
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_txtEmail CONTENT={{!COL1}}
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBYear CONTENT=%1987
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBDay CONTENT=%10
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_ddlDOBMonth CONTENT=%09
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_chkTerms CONTENT=YES
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_chkXBoxNo CONTENT=YES
ONDOWNLOAD FOLDER=C:\Users\YourUser\Documents\iMacros\Datasources\ FILE=image.jpg WAIT=YES
TAG POS=1 TYPE=IMG ATTR=ID:recaptcha_challenge_image CONTENT=EVENT:SAVEPICTUREAS
WAIT SECONDS=2
TAB OPEN
TAB T=2
URL GOTO=http://api.deathbycaptcha.com/decaptcher?function=picture2&print_format=html
TAG POS=1 TYPE=INPUT ATTR=NAME:username CONTENT=User
TAG POS=1 TYPE=INPUT ATTR=NAME:password CONTENT=Password
TAG POS=1 TYPE=INPUT ATTR=NAME:pict CONTENT=C:\Users\YourUser\Documents\iMacros\Datasources\image.jpg
TAG POS=1 TYPE=INPUT ATTR=TYPE:submit
WAIT SECONDS=5
TAG POS=6 TYPE=TD ATTR=* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
WAIT SECONDS=2
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:recaptcha_response_field CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:form1 ATTR=ID:ContentPlaceHolder1_Registration1_btnSubmit
WAIT SECONDS=7

Code Checker
Checks XBL and scrapes the text for 7 day trial. It stops if that text isn't displayed. Compare the lines and you can delete the code that didn't work.
Code
SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE C:\Users\NAME\Documents\iMacros\Datasources\checkcodes.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !LOOP 1
TAB T=1
URL GOTO=https://account.xbox.com/en-US/PaymentAndBilling/RedeemCode
TAG POS=1 TYPE=INPUT:BUTTON ATTR=ID:redeemCodeBtn
FRAME NAME="appHost"
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:tokenField CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Confirm
TAG POS=1 TYPE=DIV ATTR=TXT:LIVE<SP>7<SP>Day<SP>Trial<SP>Xbox<SP>Wrigley<SP>Promotion* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\NAME\Documents\iMacros\Datasources FILE=working.txt
TAG POS=1 TYPE=BUTTON ATTR=TXT:Cancel

Yahoo Email Maker
Yahoo email needs to be in the default view for this to work.
Code
VERSION BUILD=8810214 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
SET !VAR1 EVAL("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 10; i++){string += letters[parseInt(Math.random() * 25)]}; string")
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/neo/b/options?motype=disposable&.rand=* ATTR=ID:dea_disp_email CONTENT={{!var1}}
TAG POS=2 TYPE=INPUT:SUBMIT FORM=ACTION:/neo/b/options?motype=disposable&.rand=* ATTR=NAME:action_mo_disposable_save

------


I strongly suggest watching my video on how I created it. A couple moments in the video I have a brain fart and forget a few things but I walk you through how to automate the emails and how to setup Imagetyperz in order to automate the captcha.

Dot Trick website:
http://www.exploitn.com/gmail.php

Generate a list from your regular email address and paste the emails into the "emails.txt" file.

------
Extra Useful Code
------

Get Codes from email:
Code
var divz = document.body;
console.log("XBOX");
var codes = divz.textContent.match(/[A-Z0-9]{5}\-[A-Z0-9]{5}\-[A-Z0-9]{5}\-[A-Z0-9]{5}\-[A-Z0-9]{5}/g);
for (var i = 0; i <= codes.length; i++) {
console.log(codes[i]);
}

Paste the code into the console window (CTRL+SHIFT+I). If you have a different promo that isn't Xbox change it to the name of the service, eg. SKYPE. The output in the console will display the codes.
If you have duplicates use this website to sort through them.
http://textmechanic.com/Remove-Duplicate-Lines.html

------
Frequently Asked Questions
------

Code
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref], line 2 (Error code: -1001)

Solution:
Spoiler (Click to View)

Code
SyntaxError: unknown command: FILEDELETE at line 21

Solution:
Spoiler (Click to View)

Code
The first name isn't submitting

Solution
Spoiler (Click to View)

I can't get codes from Yahoo emails because they don't stack like gmail.

Solution
Spoiler (Click to View)

------

Credits to Soccer for the thread layout. I took it from one of his threads.


------

Lastly, enjoy!
Life's simple. You make choices and you don't look back.
Can you make the IMacro auto clear cache?
Thanks for making this tut Balloon,
i think it will helps alot of people. ✌
I just bookmarked this thread to read later. I remember seeing you post about the bot, and I'm sure more promotional events will occur. Thanks for this!
Thanks for sharing this OP! Finally an automated script, thanks ! :)
[Image: dNhkRAH.gif]
I got SyntaxError: unknown command: FILEDELETE at line 21
(May 2, 2014 04:37 PM)PROTONIX Wrote:  I got SyntaxError: unknown command: FILEDELETE at line 21

Most likely because you don't have the file "image.jpg" on your desktop. How can the script delete the file if it isn't there?

Like I said I strongly suggest you watch the video.
Life's simple. You make choices and you don't look back.
I did put it on the desktop unless its a windows 8 problem https://puu.sh/8wJto.png
(May 2, 2014 04:40 PM)PROTONIX Wrote:  I did put it on the desktop unless its a windows 8 problem https://puu.sh/8wJto.png

Hmm that's strange one sec, let me get on my desktop. What version of iMacros do you have?
Life's simple. You make choices and you don't look back.
(May 2, 2014 04:43 PM)Balloon Wrote:  Hmm that's strange one sec, let me get on my desktop. What version of iMacros do you have?

Oh wait I found the problem. Imagetyperz makes you pay to do the captcha... Do you know any free ones? Thanks!

I would like to know if the email dot exploit works on it aswell. :3
(May 2, 2014 04:44 PM)PROTONIX Wrote:  Oh wait I found the problem. Imagetyperz makes you pay to do the captcha... Do you know any free ones? Thanks!

I would like to know if the email dot exploit works on it aswell. :3

As I stated in the video it isn't free.
Also like I said in the video the gmail dot exploit doesn't work.
I released this so there won't be a need for a million threads on a script to automate promotional events.

(May 2, 2014 04:02 PM)David Ken Wrote:  Can you make the IMacro auto clear cache?

I know you can add "CLEAR" to the end of the script but I'm not sure how much it cleans in terms of cache, cookies, etc.
Life's simple. You make choices and you don't look back.
Good tutorial Balloon! Email list of yours still working?
[Image: XwAzmM2.png]
(May 2, 2014 04:56 PM)Weebex Wrote:  Good tutorial Balloon! Email list of yours still working?

I don't have one lol.
That's why the tutorial is posted. I have no use for it and haven't even looked at the site since I made that a few days ago.
Life's simple. You make choices and you don't look back.
I just watched the video and read the description. Thanks so much for this Balloon! This will really help in the future!
Well that blows.. It is a really script though! Thanks for the release :)

I hope people use this more often then purchasing scripts from other people who will sell their script for around $50 or maybe more. Generous! :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by AbnantApr 16, 2020 07:39 AM 8 147 Apr 16, 2020 07:39 AM
Last Post: Abnant
by RonzaXJul 9, 2019 02:48 PM 6 350 Jul 9, 2019 02:48 PM
Last Post: JLOLL
by Lind33Sep 5, 2018 07:36 PM 5 330 Sep 5, 2018 07:36 PM
Last Post: Lind33