1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Do you have doubts using Imacros? I can hel you to resolve it

Discussion in 'Black Hat SEO' started by elbeto, Dec 16, 2009.

  1. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    Hello guys, I just want to return the favor to this marvelous community.

    I have around 8 years programming with PHP and other languages and around 1 year with Imacros. I use both together to bring complete web automation software (Imacros scripting edition and PHP 5).

    (If I need something related with Windows for example an offline automation process I use WinAutomation in the integration, this is a fantastic tool also)

    I use Imacros (scripting version) to get the text and navigate in the browser, and PHP to process the data collected by Imacros.

    If you dont know what's Imacros... Its one of the best tool for white/gray and black hatters. Imacros can automate almost everything you do online.

    To start this thread I will publish 3 answer to common question here, about Imacros:

    Question/Problem 1:
    How to incorporate decaptcher in Imacros?
    Solution: http://www.blackhatworld.com/blackh...rial-incorporate-decaptcher-into-imacros.html

    Question/Problem 2:
    How can I change the datasource file inside my imacro?
    Solutions:
    Solution 1:
    1.- Open your firefox
    2.- Open your imacro plugin
    3.- Click in the "Edit" tab inside your imacro add on
    4.- Click in the "Options" button inside the tab "Edit"
    5.- A new windows will open with the imacros settings
    6.- Click on the tab "Paths"
    7.- Chamge the valuable in the "Folder Datasources:" variable for the one that you want
    8.- Play your Macro

    Solution 2:
    This option require that you change one line inside the imacro file (.iim)...
    You have this line in the firsts lines of the imacro:
    CMDLINE !DATASOURCE Bmacro.csv change the word CMDLINE for the word SET... at the end you will have something like this:
    SET !DATASOURCE Bmacro.csv after this you have to add the complete route of your .csv file...
    Final result:
    SET !DATASOURCE D:\Bmacro.csv (in this case I have the .csv file in the root of my Pen Drive D:

    Question/Problem 3:
    How can I add break lines using an input file?
    Solution:
    For example if you want to add the words:
    "Black
    Hat
    World"
    You can write in your imacro: Black<BR>Hat<BR>World


    Sadly all the Imacros documentation is really bad, if you are planning to build a really nice application, like for example a facebook email harvester and automatic inviter you will need PHP and MySQL to keep and process the important data... the propose of this thread is to help you to solve your doubts, of course I'm not going to teach you How to program with PHP, but I can help you installing a light web server in your own machine with PHP support hehehe.

    Please be patient when you post a question, I'm actually living in Egypt so my working time are really different compared with a lot of people here.

    English is not my first language so, please forgive my errors.

    If you find this thread interesting and helpful, do not forget to press the thanks button.

    Start the questions...
     
    • Thanks Thanks x 22
  2. blazed

    blazed Junior Member

    Joined:
    Aug 15, 2008
    Messages:
    178
    Likes Received:
    119
    I agree IMACROS is a great tool if all you have is a browser & excel... but if you are going to feed it into php in the first place why not just write the whole bot in php & curl... IMACROS is great but it's not the fastest IMHO
     
  3. youngguy

    youngguy Senior Member

    Joined:
    Apr 11, 2009
    Messages:
    1,053
    Likes Received:
    1,560
    Location:
    Hell
    build an imacro bot = 5 mins, build a php bot = 15 mins :D That's the point.
     
  4. Scumbag

    Scumbag Newbie

    Joined:
    Nov 20, 2009
    Messages:
    17
    Likes Received:
    4
    Nice ive got a question if youre knowledgeable on imacros

    this is a sample of my code for saving some links im extracting

    as you can tell it saves the links to a csv file but places the links in the A1 B1 C1 D1 E1 F1 G1 H1 colums and so on.

    This poses a problem im using this loop to recall the links (as there is 1000+ links) in another macro

    So is there anyway you can get the SAVEAS command to save the data in the A1 A2 A3 A4 A5 A6 et... cells ?

    make sense ?
     
  5. biks

    biks Power Member

    Joined:
    Oct 28, 2008
    Messages:
    713
    Likes Received:
    376
    Occupation:
    Video editor, graphics guy
    OK, I got a question:

    Let's say I want to post a bunch of articles to a bunch of article directory sites. I've got a folder of say 50 text documents, all spun differently and I want to be able to automatically copy and paste this into into a series of different sites.

    I know I could paste all my text docs into one giant csv file and use the LOOP +1 command to go down the list. (as with any other data) But it seems like such a pain in the ass to do this. I've got 50 text files ready to go in a folder, I just want iMacros to insert these.
     
  6. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    That's true my friend, but I think is easy for non programmer just to learn a couple of sentences in PHP and then use all the Imacros potential...

    One imacros advantage is:
    - If you do not have how to do something in Imacros, just record it and then copy and paste.
     
  7. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    Hahahaha exactly may be more than 15 minutes with PHP, the capacity of the iamcros recording button is amazing then copy and paste and your Imacro is ready
     
  8. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop

    I want to make sure what you are asking...

    Do you need an imacro that can extract text and during each cycle add this extracted text in the next cell available? am I right?

    If this is the question... I have PHP to process the data and recall the imacro script witht the next link to extract. You can append the data at the end of the file, so you will have in the first time A1 filled, then A2, then A3, etc...

    If you need help with the PHP just PM me to give it to you...
     
  9. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    I dont know if this apply for you, but you can have a .csv lets call it articlesurls.csv file with pairs something like: articlefilename1, url1

    Then you use PHP to make a cycle that read the articlesurls.csv file and call the imacros with the parameters, run the imacros and then read the second line in the articlesurls.csv file and call the imacros with this new parameters and so on...

    If you need help with the PHP please pm me, I hope this can help you...
     
  10. kojakfull

    kojakfull Senior Member

    Joined:
    Jan 13, 2008
    Messages:
    851
    Likes Received:
    1,050
    Location:
    CustomBotSolutions.com
    Home Page:
    Hi can you please answer my question here
    Code:
    http://forum.iopus.com/viewtopic.php?f=7&t=8563
    Moderators just ignoring my thread there.

    thanks
     
  11. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    Hi, well the problem here is that the image file is auto generated and never have the same name, also the image generated does not have any extension... but you can use the command SAVEPICTUREAS like this:

    VERSION BUILD=6851105
    TAB T=1
    TAB CLOSEALLOTHERS
    URL GOTO=http://ho.tli.st/register
    ONDOWNLOAD FOLDER=C:\ FILE=1.bmp WAIT=YES
    TAG POS=1 TYPE=IMG ATTR=HREF:http://ho.tli.st/includes/captcha/* CONTENT=EVENT:SAVEPICTUREAS

    This command will make what you need, will download the image to the specify folder in the ondownload command, only one limitant, the image format will be .bmp, you can use the image PHP function to transform the image to your desired extension file

    I tested this .iim file with imacros browser 6.5 build 135 and the last Internet explorer add on... both work perfect, not tested with firefox
     
    • Thanks Thanks x 2
  12. kojakfull

    kojakfull Senior Member

    Joined:
    Jan 13, 2008
    Messages:
    851
    Likes Received:
    1,050
    Location:
    CustomBotSolutions.com
    Home Page:
    Thanks a lot elbeto. It works. I just add this line
    Code:
    FILEDELETE NAME=C:\1.bmp
    for beatcaptchas. Will throw another questions if i bump into some problems with imacros.
     
  13. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    Im glad it works for you! :D Ill be waiting if you need something more...
     
  14. biks

    biks Power Member

    Joined:
    Oct 28, 2008
    Messages:
    713
    Likes Received:
    376
    Occupation:
    Video editor, graphics guy
    Nope. I want to AVOID having to paste in tons of text into cells within a csv file. I know how to do that already and it would be pretty time consuming. (for me anyways)

    What I've got is a folder filled with (50) text files that I've spun out of an article spinner application. I want to post article #1 to website #1, article #2 to website #2, etc. (Or just randomly pick an article and post it to a website.) In a sense, I want my DATASOURCE to be a folder, not a .csv file. It doesn't appear that iMacros can do this. Can the scripting version pull this off somehow?
     
  15. youngguy

    youngguy Senior Member

    Joined:
    Apr 11, 2009
    Messages:
    1,053
    Likes Received:
    1,560
    Location:
    Hell
    @biks: imacro can't do what you described above. You will need a custom php script to convert all your text file in to csv first then use with imacro
     
  16. kojakfull

    kojakfull Senior Member

    Joined:
    Jan 13, 2008
    Messages:
    851
    Likes Received:
    1,050
    Location:
    CustomBotSolutions.com
    Home Page:
    Is it possible to call two datasource in one file?
     
  17. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    Yep my friend totally possible, for example if you have a bookmarking bot, you can call your .csv for profile data and then call your .csv with the bookmark content. Normally I use this code:

    Code:
    SET !DATASOURCE C:\LightTPD\htdocs\bookmarking\profileinfo.csv
    SET !DATASOURCE_COLUMNS 15
    'Start at line # BELOW to skip the header in the file
    SET !LOOP 3
    SET !DATASOURCE_LINE {{!LOOP}}
    
    .... do your stuff related witht the login and after that...
    
    SET !DATASOURCE C:\LightTPD\htdocs\bookmarking\contentinfo.csv
    SET !DATASOURCE_COLUMNS 5
    'Start at line # BELOW to skip the header in the file
    SET !LOOP 3
    SET !DATASOURCE_LINE {{!LOOP}}
    ... add the data for the bookmark...
    
     
  18. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    Like younguy said you will need PHP to process or transform the data...
     
  19. biks

    biks Power Member

    Joined:
    Oct 28, 2008
    Messages:
    713
    Likes Received:
    376
    Occupation:
    Video editor, graphics guy
    What I need to learn is some programming language that can do web automation for real. I've seen all the variations which can do this, just I would need to dedicate a shit pile of time to learning one. *heavy sigh*
     
  20. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    OK, i will explain you one way to do this with PHP... (there is a lot of way, if you have problems with this or one want to try another way using PHP just reply)

    1.- If you don't want to use Database you can use a file with pairs per line, the content of the file will have something like this:
    filename1,website1
    filename2,website2
    and so on...
    2.- You will need to learn from PHP how to use the fopen, fread commands to open and read the file per line, then you can do the strtok function to get the filename# and website# and keep it in a variable...
    3.- After that you can pass this variable as parameters to the imacro, using something like this:
    Code:
    inside the php file
    $fso2 = new COM('Scripting.FileSystemObject'); //Execute the Imacro
    $fso2 = NULL;
    $iim2 = new COM("imacros");
    $s2 = $iim2->iimInit("-runner -useragent ".$useragent); //change imacro user agent
    $s2 = $iim2->iimSet("-var_website", $website1); //website parameter
    $s2 = $iim2->iimSet("-var_file", $file1); //file content parameter
    $s2 = $iim2->iimPlay("FileWriter");
    
    May be you will need more parameters, like title of the article, author, etc...

    The imacro will look something like this:
    Code:
    inside the imacro file
    URL GOTO={{website}}
    ... do something like login i dont know what you want to do here
    TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:content CONTENT={{file}}
    ... continue your imacro
    
    Now Im thinking probably you will need to add some Imacros code on runtime, it all depends how you are fill in the form and the nature of each website... If not you will probably have a huge imacro with the different ways each website process the articles, and you will need to pass to this huge imacros a big amount of parameters :p

    I hope this can help you