Jump to content

java.security.AccessControlException: access denied ("java.awt.AWTPermission" "createRobot")


colby__

Recommended Posts

I need it, otherwise this bot is totally useless to me as I need to implement my own mouse methods to get the ban rate down to something acceptable :/ There is always a way.. Can I get direct access to the robot osbot already uses?

Mouse data is not sent to jagex, it's legacy code. Can't you just generate mouse movements using the associated ClientMouseEventHandler instance?

Link to comment
Share on other sites

Mouse data is not sent to jagex, it's legacy code. Can't you just generate mouse movements using the associated ClientMouseEventHandler instance?

Uhh mouse detection is the core of their bot detection system no? Where did you hear they do not analyze mouse movements? How else would they detect bots?

Also I want to simulate a different type of mouse input, some cases it will need to move instantly across the screen which this mouse arbitrarily does not support as far as I can tell. Where is the ClientMouseEventHandler instance ? The class is obfuscated.. lol

  • Like 2
Link to comment
Share on other sites

Mouse data is not sent to jagex, it's legacy code. Can't you just generate mouse movements using the associated ClientMouseEventHandler instance?

Mouse data is sent to jagex. There's literally code to send mouse data to the server in the gamepack

https://github.com/SasukeFan203/R74/blob/29ecae1f1255c94d3be0ba848a7426083a8bc916/src/com/jagex/ClientData.java#L98

 

If you want proof that mouse data is sent to the server, there.

  • Like 1
Link to comment
Share on other sites

I need it, otherwise this bot is totally useless to me as I need to implement my own mouse methods to get the ban rate down to something acceptable :/ There is always a way.. Can I get direct access to the robot osbot already uses?

osbot doesnt use Robot for input, events are dispatched directly to the canvas

Edited by Dog_
  • Like 1
Link to comment
Share on other sites

osbot doesnt use Robot for input, events are dispatched directly to the canvas

So how can I make the mouse move instantly to a location? Also, how can I make the client think that the mouse has left the game window? IE someone actually playing runescape would be using other apps at the same time in this day and age. But the mouse seems to stop at the bounds. of the client.

Link to comment
Share on other sites

Uhh mouse detection is the core of their bot detection system no? Where did you hear they do not analyze mouse movements? How else would they detect bots?

Also I want to simulate a different type of mouse input, some cases it will need to move instantly across the screen which this mouse arbitrarily does not support as far as I can tell. Where is the ClientMouseEventHandler instance ? The class is obfuscated.. lol

Haha, not really. I abused a mouse recorder(same path, every time) on osbuddy day and night for 6 months straight. It took them that long to ban me, and it was a 14-day... that's less on the ban meter than a 2-day

 

i really , really doubt that jagex bases bans on mouse data. 6 months day in day out

Link to comment
Share on other sites

Haha, not really. I abused a mouse recorder(same path, every time) on osbuddy day and night for 6 months straight. It took them that long to ban me, and it was a 14-day... that's less on the ban meter than a 2-day

 

i really , really doubt that jagex bases bans on mouse data. 6 months day in day out

It's just a flag, they collect the data, but won't ban on that data alone. (That's just my guess though.)

 

 

Honestly, jagex isn't that retarded. They're not going to let us know what got us banned. (Just my theory btw) If I were them, I would just collect a list of all these flags, albeit via client, mouse, ip, or any other detection method, put em on a list and only start banning them when they've been in that bowl for a while. just grab a random number of accounts and pce them out of the game. 

Otherwise we'd just be able to determine what gets you banned via trial and error by editing pieces of code one thing at a time, almost like a super long and frustrating game of mastermind

Link to comment
Share on other sites

So nobody knows how to move the mouse instantly?

 

It has already been mentioned.

 

ClientMouseEventHandler class

The methods you're looking for is generateBotMouseEvent

EDIT: An instance can be obtained thru getBot().getMouseEventHandler()

 

Also on the discussion of jagex looking at mouse movements. If you take a look at the network traffic that leaves the client, you'll quickly notice that the only thing actually sent to jagex is clicks (and w/e other events, not including mouse-movement, though). That's not to say that they don't have the ability to look at it; but I haven't noticed any large or small dumps of mouse movement data leaving the client yet, so at least it can't be a common occurence.

 

Edited by FrostBug
Link to comment
Share on other sites

So how can I make the mouse move instantly to a location? Also, how can I make the client think that the mouse has left the game window? IE someone actually playing runescape would be using other apps at the same time in this day and age. But the mouse seems to stop at the bounds. of the client.

 

From the API for ClientMouseEventHandler:

generateBotMouseEvent(int id, long time, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button, boolean botInput)
An example of moving the mouse instantly:

getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, x, y, 0, false, 0, true);
Just noticed the move outside the screen thing:

getMouse().moveOutsideScreen()
Edited by Lemons
Link to comment
Share on other sites

It has already been mentioned.

 

ClientMouseEventHandler class

The methods you're looking for is generateBotMouseEvent

EDIT: An instance can be obtained thru getBot().getMouseEventHandler()

 

Also on the discussion of jagex looking at mouse movements. If you take a look at the network traffic that leaves the client, you'll quickly notice that the only thing actually sent to jagex is clicks (and w/e other events, not including mouse-movement, though). That's not to say that they don't have the ability to look at it; but I haven't noticed any large or small dumps of mouse movement data leaving the client yet, so at least it can't be a common occurence.

 

 

 

 

From the API for ClientMouseEventHandler:

generateBotMouseEvent(int id, long time, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button, boolean botInput)
An example of moving the mouse instantly:

getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, x, y, 0, false, 0, true);
Just noticed the move outside the screen thing:

getMouse().moveOutsideScreen()

 

 

Thanks guys great help! One last question. The method to move the mouse outside of the screen has a lot of extra functionality I do not want, such as actually moving the mouse to get it outside of the screen, so I assume I can just use mouseExited and mouseClicked etc and it will fire directly to the client correct? Also what is the botInput popupTrigger and time variables for exactly? The API is blank haha

Edited by colby__
Link to comment
Share on other sites

Thanks guys great help! One last question. The method to move the mouse outside of the screen has a lot of extra functionality I do not want, such as actually moving the mouse to get it outside of the screen, so I assume I can just use mouseExited and mouseClicked etc and it will fire directly to the client correct? Also what is the botInput popupTrigger and time variables for exactly? The API is blank haha

 

MouseClicked is all you need really AFAIK. It will fire the event directly yes.

EDIT: scratch that, I believe the proper procedure is:

MousePressed

MouseReleased

MouseClicked

In that order

 

botInput indicates whether this mouse event was generated by the bot, or by the user

popuptrigger indicates whether or not this event triggers a popup (it does not)

time is the timestamp for which this event occured (now)

 

From AWT MouseEvent:

0c94e04ac6f7096a5e42182060f5534a.png

Edited by FrostBug
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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