Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HACKED : RS07 . POSSIBLE PEST CONTROL BOT?

Featured Replies

Was anybody else hacked, pretty sure hes using malware. He raided my bank , and dropped my void out of spite. Used the Clag Pes Control bot. File called Pest.Groovy . This happening to anybody else? Please let me know. Thankyou 

I can scim through the code real quick, was it a local script on osbot? and did you download ANYTHING else? the chances of it being osbot are 0.0%, it could be the scripter though

  • Author

No I did not download anything else. 

 

heres the script :

 

mport java.awt.Color;
import java.awt.Graphics;
import java.util.List;

import org.osbot.script.Script;
import org.osbot.script.ScriptManifest;
import org.osbot.script.rs2.map.Position;
import org.osbot.script.rs2.model.NPC;
import org.osbot.script.rs2.model.Player;
import org.osbot.script.rs2.skill.Skill;
import org.osbot.script.rs2.ui.Prayer;
import org.osbot.script.rs2.ui.Tab;

@ScriptManifest(author = "Clag", name = "Clag Pest Controller", info = "Plays pest control", version = 1.21d)
public class Pest extends Script {


    @Override
    public void onExit() throws InterruptedException {

    }

    @Override
    public int onLoop() throws InterruptedException {
        try {
            closeOpenInterface();

            if( !isRunning() && myPlayer().getClient().getRunEnergy() > 49 && !(myX() == 2657 && myY() == 2639) ) {
                setRunning( true );
            }

            if( x < 2660 || y >= 2645 ) {
                //2660 2638 to 2663 2643 [inside the boat]
                walkedToMiddle = false;
                if( !(myX() == 2657 && myY() == 2639) && !( x > 5000 ) ) {
                    walkExact( new Position( 2657, 2639, 0 ) );
                }
                
            }

            if( myX() == 2657 && myY() == 2639 ) {
                closestObject(14315).interact("Cross");
                waiting = true;
                walkedToSee = false;
                if( inDialogue() ) {
                    closestObject(14315).interact("Cross");
                    closestObject(14315).interact("Cross");
                }
                walked = false;
                walkedToMiddle = false;
                waittimetoomuch = 0;
                
                return random( 150, 200 );
            }

            if( waiting ) {
                //waiting antiban
                if( myY() > 2645)
                    waiting = false;
                if( !walked ) {
                    walkMiniMap( new Position( random( 2661, 2663 ), random( 2639, 2642 ), 0 ) );
                    walked = true;
                }
                if( random( 1, 20 ) == 15 )
                    walked = false;
                myPlayer().getClient().rotateCameraToAngle( random( 50, 300 ) );
                client.moveMouse( client.getLocalPlayers().get( random( 0, client.getLocalPlayers().size()-1 ) ).getMouseDestination(), false );
                walkedToMiddle = false;
                waittimetoomuch++;
                waittimetoomuch+=1.4;
                if( waittimetoomuch >= 5000 ) {
                    logoutTab.logOut();
                }
                
            }
        } catch( Exception e ) {
            //waiting = false;
        }
        /** End Beach interaction **/

        /** Start game **/
        //7649, 6050 protect guy
        //7648, 6038 extra kills
        //monsters: 918, 920

        if( myX() > 5000 ) {
            try {
                waiting = false;
                walked = false;
                waittimetoomuch = 0;
                if( walkedToSee == false ) {
                    try {
                        x = myX();
                        y = myY();
                        walk( new Position( closestNPCForName("Squire").getPosition().getX()+(2+random( -2, 2)), closestNPCForName("Squire").getPosition().getY()-(10+random( 1, 6 )), closestNPCForName("Squire").getPosition().getZ() ) );//closestNPCForName("Squire").getPosition() );
                        walkedToSee = true;
                        enemy = null;
                        if( myPlayer().getClient().getLevelStat()[ Skill.PRAYER.getId() ] >= 34 )
                            prayerTab.setPrayer( Prayer.INCREDIBLE_REFLEXES, true );
                    } catch( Exception e ) {
                        walkedToSee = true;
                    }
                }
                if( !openTab( Tab.INVENTORY ) ) {
                    openTab( Tab.INVENTORY );
                }
                if( myX() == x && myY() == y ) {
                    walkMiniMap( new Position( closestNPCForName("Squire").getPosition().getX()+(2+random( -2, 2)), closestNPCForName("Squire").getPosition().getY()-(10+random( 1, 6 )), closestNPCForName("Squire").getPosition().getZ() ) );//closestNPCForName("Squire").getPosition() );
                }

                if( myPlayer().getWalkingQueueSize() <= 1 ) {
                    if( enemy == null || enemy != null && (!enemy.exists() || !enemy.isVisible()) )
                        enemy = closestNPCListForName("Torcher","Defiler","Ravager","Brawler","Shifter").get( random( 0, closestNPCListForName("Torcher","Defiler","Ravager","Brawler","Shifter").size()%2 ) );

                    if( enemy != null && (enemy.isVisible() || enemy.getPosition().distance(myPosition()) == 0) && !myPlayer().isFacing(enemy) && walkedToSee && !myPlayer().isAnimating()) {
                        //enemy.interact("Attack");
                        walkedToSee = true;
                        if( enemy.getName().equalsIgnoreCase("Brawler") ) {
                            enemy.interact("Attack");
                        } else {
                            client.moveMouse( enemy.getMouseDestination() , false);
                            client.clickMouse( false );
                        }
                        return random( 500, 650 );
                    }
                }

                if( enemy != null && ( enemy.getHealth() <= 0 || !enemy.isVisible() || !enemy.exists()) )
                    enemy = null;


            } catch( Exception e ) {
                //things havnt spawned yet
            }

        }

        if( random( 1, 5 ) == 1 ) {
            myPlayer().getClient().rotateCameraToAngle( random( 150, 300 ) );
        }
        if( random( 1, 4 ) == 3 ) {
            myPlayer().getClient().rotateCameraPitch( random( 200, 275 ) );
        }
        if(waiting)
        return random( 1800, 2250 );
        return random( 300, 450 );
    }

    @Override
    public void onMessage(String arg0) throws InterruptedException {

    }

    @Override
    public void onPaint(Graphics g) {
        try {
            g.setColor( Color.BLUE );
            g.fillRect( 0, 475, 800, 500);
            g.setColor( Color.WHITE );

            g.drawString( "TimeTillLogout: "+((int)5000-(waittimetoomuch))+" waiting:"+waiting, 0, 485);
        } catch ( Exception e ) {
        }
    }

    @Override
    public void onPlayerMessage(String arg0, String arg1) throws InterruptedException {

    }

    @Override
    public void onStart() {
        x = myX();
        y = myY();

    }

    private int x, y;
    NPC enemy;
    boolean waiting = false;
    float waittimetoomuch = 0;
    boolean walked = false;
    private boolean walkedToMiddle = false, walkedToSee = false;
}

No I did not download anything else. 

 

heres the script :

 

mport java.awt.Color;

import java.awt.Graphics;

import java.util.List;

import org.osbot.script.Script;

import org.osbot.script.ScriptManifest;

import org.osbot.script.rs2.map.Position;

import org.osbot.script.rs2.model.NPC;

import org.osbot.script.rs2.model.Player;

import org.osbot.script.rs2.skill.Skill;

import org.osbot.script.rs2.ui.Prayer;

import org.osbot.script.rs2.ui.Tab;

@ScriptManifest(author = "Clag", name = "Clag Pest Controller", info = "Plays pest control", version = 1.21d)

public class Pest extends Script {

    @Override

    public void onExit() throws InterruptedException {

    }

    @Override

    public int onLoop() throws InterruptedException {

        try {

            closeOpenInterface();

            if( !isRunning() && myPlayer().getClient().getRunEnergy() > 49 && !(myX() == 2657 && myY() == 2639) ) {

                setRunning( true );

            }

            if( x < 2660 || y >= 2645 ) {

                //2660 2638 to 2663 2643 [inside the boat]

                walkedToMiddle = false;

                if( !(myX() == 2657 && myY() == 2639) && !( x > 5000 ) ) {

                    walkExact( new Position( 2657, 2639, 0 ) );

                }

                

            }

            if( myX() == 2657 && myY() == 2639 ) {

                closestObject(14315).interact("Cross");

                waiting = true;

                walkedToSee = false;

                if( inDialogue() ) {

                    closestObject(14315).interact("Cross");

                    closestObject(14315).interact("Cross");

                }

                walked = false;

                walkedToMiddle = false;

                waittimetoomuch = 0;

                

                return random( 150, 200 );

            }

            if( waiting ) {

                //waiting antiban

                if( myY() > 2645)

                    waiting = false;

                if( !walked ) {

                    walkMiniMap( new Position( random( 2661, 2663 ), random( 2639, 2642 ), 0 ) );

                    walked = true;

                }

                if( random( 1, 20 ) == 15 )

                    walked = false;

                myPlayer().getClient().rotateCameraToAngle( random( 50, 300 ) );

                client.moveMouse( client.getLocalPlayers().get( random( 0, client.getLocalPlayers().size()-1 ) ).getMouseDestination(), false );

                walkedToMiddle = false;

                waittimetoomuch++;

                waittimetoomuch+=1.4;

                if( waittimetoomuch >= 5000 ) {

                    logoutTab.logOut();

                }

                

            }

        } catch( Exception e ) {

            //waiting = false;

        }

        /** End Beach interaction **/

        /** Start game **/

        //7649, 6050 protect guy

        //7648, 6038 extra kills

        //monsters: 918, 920

        if( myX() > 5000 ) {

            try {

                waiting = false;

                walked = false;

                waittimetoomuch = 0;

                if( walkedToSee == false ) {

                    try {

                        x = myX();

                        y = myY();

                        walk( new Position( closestNPCForName("Squire").getPosition().getX()+(2+random( -2, 2)), closestNPCForName("Squire").getPosition().getY()-(10+random( 1, 6 )), closestNPCForName("Squire").getPosition().getZ() ) );//closestNPCForName("Squire").getPosition() );

                        walkedToSee = true;

                        enemy = null;

                        if( myPlayer().getClient().getLevelStat()[ Skill.PRAYER.getId() ] >= 34 )

                            prayerTab.setPrayer( Prayer.INCREDIBLE_REFLEXES, true );

                    } catch( Exception e ) {

                        walkedToSee = true;

                    }

                }

                if( !openTab( Tab.INVENTORY ) ) {

                    openTab( Tab.INVENTORY );

                }

                if( myX() == x && myY() == y ) {

                    walkMiniMap( new Position( closestNPCForName("Squire").getPosition().getX()+(2+random( -2, 2)), closestNPCForName("Squire").getPosition().getY()-(10+random( 1, 6 )), closestNPCForName("Squire").getPosition().getZ() ) );//closestNPCForName("Squire").getPosition() );

                }

                if( myPlayer().getWalkingQueueSize() <= 1 ) {

                    if( enemy == null || enemy != null && (!enemy.exists() || !enemy.isVisible()) )

                        enemy = closestNPCListForName("Torcher","Defiler","Ravager","Brawler","Shifter").get( random( 0, closestNPCListForName("Torcher","Defiler","Ravager","Brawler","Shifter").size()%2 ) );

                    if( enemy != null && (enemy.isVisible() || enemy.getPosition().distance(myPosition()) == 0) && !myPlayer().isFacing(enemy) && walkedToSee && !myPlayer().isAnimating()) {

                        //enemy.interact("Attack");

                        walkedToSee = true;

                        if( enemy.getName().equalsIgnoreCase("Brawler") ) {

                            enemy.interact("Attack");

                        } else {

                            client.moveMouse( enemy.getMouseDestination() , false);

                            client.clickMouse( false );

                        }

                        return random( 500, 650 );

                    }

                }

                if( enemy != null && ( enemy.getHealth() <= 0 || !enemy.isVisible() || !enemy.exists()) )

                    enemy = null;

            } catch( Exception e ) {

                //things havnt spawned yet

            }

        }

        if( random( 1, 5 ) == 1 ) {

            myPlayer().getClient().rotateCameraToAngle( random( 150, 300 ) );

        }

        if( random( 1, 4 ) == 3 ) {

            myPlayer().getClient().rotateCameraPitch( random( 200, 275 ) );

        }

        if(waiting)

        return random( 1800, 2250 );

        return random( 300, 450 );

    }

    @Override

    public void onMessage(String arg0) throws InterruptedException {

    }

    @Override

    public void onPaint(Graphics g) {

        try {

            g.setColor( Color.BLUE );

            g.fillRect( 0, 475, 800, 500);

            g.setColor( Color.WHITE );

            g.drawString( "TimeTillLogout: "+((int)5000-(waittimetoomuch))+" waiting:"+waiting, 0, 485);

        } catch ( Exception e ) {

        }

    }

    @Override

    public void onPlayerMessage(String arg0, String arg1) throws InterruptedException {

    }

    @Override

    public void onStart() {

        x = myX();

        y = myY();

    }

    private int x, y;

    NPC enemy;

    boolean waiting = false;

    float waittimetoomuch = 0;

    boolean walked = false;

    private boolean walkedToMiddle = false, walkedToSee = false;

}

well this confirms it's not the script, you might have some form of malware on your computer, you can try a scan with malwarebytes, but I can assure you it was not this script or osbot

this one as well: YewsCutter. And its just like a Java file. Not a script 

the java file is the script tongue.png

 

 

and that's not it either :P

Edited by Solution

  • Author

I'm not accusing, I'm just stating what I have downloaded. I'm scanning for Malaware now. Sad they had to drop my void out of spite. =[ 


Taking donations. Rofl ='[

this one as well: YewsCutter. And its just like a Java file. Not a script

Its not my script, decompile and check it out.

Hacking is one thing, but he dropped your void? What an absolute asshole


We must find the hacker and lynch him.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.