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

Is it possible to make an user do something automatically? (noob)

Discussion in 'General Scripting Chat' started by muxmkt, Feb 25, 2012.

  1. muxmkt

    muxmkt Power Member

    Joined:
    May 24, 2011
    Messages:
    543
    Likes Received:
    132
    Hey

    I know almost nothing about programming, and id like to know if its possible to put a script on a page that make something automatically, like register on a site or something. It picks names/email/whatever from a list.

    Im messing with iMacros here and i see that it can export as Javascript. So what i need to execute my imacros bot on a page from the JS file? any pre installed stuff on the server? or just use the code?

    Sorry if its confusing


    Regards!


    EDIT:

    One example

    Lets say i created a bot that goes to google.com and google "hello"...

    I export the code as JS

    Now what ti need to do to make it work when ppl visit my site? beside putting the javascript code on my site..
     
    Last edited: Feb 25, 2012
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Short answer:

    No, you can't do that.

    Longer answer:

    You can have a hidden iframe pointing to any url you like, but you can't use POST (i.e. not login anywhere), so it 's mostly useless. In specialized cases, where XSS is involved, more can be achieved.
     
    Last edited: Feb 26, 2012
  3. ijof9

    ijof9 Power Member

    Joined:
    Mar 27, 2010
    Messages:
    536
    Likes Received:
    594
    Occupation:
    CTO
    Location:
    Western Europe
    Just like jazzc pointed out, javascript is limited to same-origin policy (this means same domain, same port and same protocol) - that's why we were using JS in address bar when bombing Facebook last year.

    However small, non-wordpress websites don't implement CSRF protection (which is cross-site request forgery), and that allows you to host a form somewhere and send its data to any other websites.

    If you really need to do it, you'll need a custom software application or a browser extension that does the specific job, and disguise it as something else.
     
  4. muxmkt

    muxmkt Power Member

    Joined:
    May 24, 2011
    Messages:
    543
    Likes Received:
    132
    okay guys thanks for the answer!