Code Monkey home page Code Monkey logo

ingress-bot's People

Contributors

maome avatar theadminblagger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ingress-bot's Issues

getObjectsInCells API do not work as origin

Hi,

From my test, it seems that the cellId in array "cellsAsHex" should be put in a specific unknown order in current API version. I have no idea what's going on and can not justify what's the rule to put the cellid.
Any idea?

is it still working ?

i got

Handshaking...
html>
Exception in thread "main" Unexpected character (h) at position 1.
.......

path

Dont use this bot, because if, coordinate list are: 1;2;3;4;5;6;7;8.... then it movs from 1 to 2 , from 1 to 3, from 1 to 4, from 1 to 5 ..., bet not 1 to 2 to 3 to 4 .... and then back to 1 .. ;)

XSRF Change

Hey I have a question do you have to change anything for the xsrftoken? I'm starting to get one with a (:) and what seems like a timestamp.
Example:

"xsrfToken":"RbPFyO2my19BDQio8w6XXQWDj-U:1389203153862"

And recently I am getting 403 for server calls.

This is the code I'm getting a 403 for

  public String getInventory() throws Exception
    {
        JSONObject main = new JSONObject();
        JSONObject params = new JSONObject();
        Date d = new Date();
        params.put("lastQueryTimestamp", d.getTime()-6000);
        main.put("params",params);

        //Setup the json connection
        URL getObjectsURL = new URL(baseURL + "/rpc/playerUndecorated/getInventory");
        URLConnection getObjectsCon = getObjectsURL.openConnection();
        getObjectsCon.setRequestProperty("Cookie", this.authCookie);
        getObjectsCon.setRequestProperty("X-XsrfToken", this.xsrfToken);
        getObjectsCon.setRequestProperty("User-Agent", "Nemesis (gzip)");
        getObjectsCon.setDoOutput(true);
        //Setup and use the writer
        OutputStreamWriter out = new OutputStreamWriter(getObjectsCon.getOutputStream());
        out.write(main.toString());  //Write our json object to the connection
        out.close();

        //Setup and use the reader
        BufferedReader br = new BufferedReader(new InputStreamReader(getObjectsCon.getInputStream()));
        String line = br.readLine();
        br.close();
        return line;


    }

Any help would be appreciated

Error

Have an error after starting the bot:

Exception in thread "main" java.lang.NullPointerException
at ClientWrapper.getObjectsInCells(ClientWrapper.java:151)
at ClientWrapper.newLocation(ClientWrapper.java:323)
at LocationRunner.run(LocationRunner.java:20)
at Pygress.main(Pygress.java:30)
make: *** [run] Error 1

New nemesisID

Hi, this is the new nemesisID I got for scanner v1.35.1

ClientWrapper.java:35

public final String nemesisDeviceID = "json=%7B%22nemesisSoftwareVersion%22%3A%222013-09-10T22%3A08%3A32Z+904499d6f84a+opt%22%2C%22deviceSoftwareVersion%22%3A%22v1.35.1%22%7D";

I have already tested it and it works. Thanks for sharing the code!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.