Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit a2f8b6c

Browse files
author
Checkium
committed
Updated to new vHack version
1 parent 38bd5c9 commit a2f8b6c

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

src/me/checkium/vhackapi/Stats.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
public enum Stats {
44

5-
money, ip, inet, hdd, cpu, ram, fw, av, sdk, ipsp, spam, scan, adw, netcoins, bonus, rank, hash, id
5+
money, ip, inet, hdd, cpu, ram, fw, av, sdk, ipsp, spam, scan, adw, netcoins, bonus, elo, hash, id
66

77
}

src/me/checkium/vhackapi/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class Utils {
2323

2424
static {
2525
assertionstatus = !Utils.class.desiredAssertionStatus();
26-
url = "http://api.vhackxt.com/v/8/";
26+
url = "http://api.vhackxt.com/v/9/";
2727
md5s = "MD5";
2828
secret = "aeffl";
2929
byt = new byte[]{(byte) 65, (byte) 66, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 75, (byte) 76, (byte) 77, (byte) 78, (byte) 79, (byte) 80, (byte) 81, (byte) 82, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 97, (byte) 98, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 107, (byte) 108, (byte) 109, (byte) 110, (byte) 111, (byte) 112, (byte) 113, (byte) 114, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) 48, (byte) 49, (byte) 50, (byte) 51, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 45, (byte) 95};

src/me/checkium/vhackapi/console/AdwareManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.net.URL;
88
import java.net.URLConnection;
99
import java.util.HashMap;
10+
import java.util.concurrent.TimeUnit;
1011

1112
import org.json.JSONArray;
1213
import org.json.JSONObject;
@@ -61,6 +62,12 @@ public boolean removeAdware(String target) {
6162

6263

6364
public HashMap<String, Integer> getAdware() {
65+
try {
66+
TimeUnit.MILLISECONDS.sleep(100);
67+
} catch (InterruptedException e) {
68+
// TODO Auto-generated catch block
69+
e.printStackTrace();
70+
}
6471
HashMap<String, Integer> map = new HashMap<>();
6572
JSONObject json = Utils.JSONRequest("user::::pass", username + "::::" + password, "vh_adwareInfo.php");
6673
if (json.getInt("remote") <= 0) {

src/me/checkium/vhackapi/vHackAPI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public String getStats(Stats stat) {
5454
is = new URL(Utils.generateURL("user::::pass", username + "::::" + password, "vh_update.php")).openStream();
5555
BufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName("UTF-8")));
5656
String jsonText = Utils.readJson(rd);
57+
System.out.println(jsonText);
5758
json = new JSONObject(jsonText);
5859

5960
} catch (MalformedURLException e) {

0 commit comments

Comments
 (0)