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

Commit 1d3aeb3

Browse files
authored
Merge pull request #47 from C0mm4nd/master
Implemented another thing
2 parents 0f4a525 + 1ec3cdc commit 1d3aeb3

File tree

7 files changed

+18
-13
lines changed

7 files changed

+18
-13
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# vHackAPI-Java
23

34
## There has been a update lately that was messed things up. Were working on integrating the changes.
@@ -8,6 +9,7 @@
89
[![Discord](https://img.shields.io/badge/Chat-%20on%20Discord-738bd7.svg?style=flat-square)](https://discord.gg/PHgESQn) [![Build Status](https://img.shields.io/travis/OlympicCode/vHackAPI-Java.svg?style=flat-square)](https://travis-ci.org/OlympicCode/vHackAPI-Java) [![Downloads](https://img.shields.io/github/downloads/OlympicCode/vHackAPI-Java/total.svg?style=flat-square)]() [![GitHub release](https://img.shields.io/github/release/OlympicCode/vHackAPI-Java.svg?style=flat-square)]()
910

1011
### Contributors: [@Checkium](https://github.com/checkium), [@dude24760](https://github.com/dude24760), [@angelbirth](https://github.com/angelbirth), [@Qup42](https://github.com/Qup42), [@tr0teK](https://github.com/tr0teK), [@C0mm4nd](https://github.com/C0mm4nd)
12+
### Active Contributors: [@Checkium](https://github.com/checkium)(API/Manager), [@C0mm4nd](https://github.com/C0mm4nd)(API), [@Qup42](https://github.com/Qup42)(API OCR)
1113
###### Don't forget to add your name here when you pull request.
1214
Current feature list:
1315
- Ability to scan the network for IP addresses.

src/main/java/me/checkium/vhackapi/console/Connection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public TransferResult trojanTransfer(){
5959

6060
public void clearLogs(){
6161

62-
Utils.StringRequest("user::::pass::::uhash::::target", Console.user + "::::" + Console.pass + "::::" + Console.uHash + "::::" + IP, "vh_clearAccessLog.php");
62+
Utils.JSONRequest("user::::pass::::uhash::::target", Console.user + "::::" + Console.pass + "::::" + Console.uHash + "::::" + IP, "vh_clearAccessLog.php");
63+
6364
}
6465

6566
public String getUsername() {

src/main/java/me/checkium/vhackapi/console/Image.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package me.checkium.vhackapi.console;
22

3+
34
import javax.imageio.ImageIO;
45
import javax.xml.bind.DatatypeConverter;
56
import java.awt.image.BufferedImage;
@@ -8,7 +9,9 @@
89
import java.io.IOException;
910
import java.math.BigInteger;
1011

11-
//TODO: cleanup code
12+
/**
13+
* Created by Julian Mundhahs on 23.02.2017.
14+
*/
1215
public abstract class Image {
1316

1417
BufferedImage image;

src/main/java/me/checkium/vhackapi/console/Letters.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.util.HashMap;
55

66
//TODO: move to a suitable package -> eg. OCR
7-
//TODO: cleanup code
87
public class Letters {
98

109
private static HashMap<BigInteger, Character> table;

src/main/java/me/checkium/vhackapi/console/NetworkImage.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.awt.image.BufferedImage;
44
import java.io.IOException;
55

6-
//TODO: cleanup code
76
public class NetworkImage extends Image {
87

98
private String hostName = "";
@@ -68,9 +67,8 @@ private void readInHostname() {
6867
}
6968
}
7069

71-
public boolean isWatchedByFBI()
72-
{
73-
return checkRedPixel();
70+
public boolean checkForAnonymity() {
71+
return anonymous;
7472
}
7573

7674
public String getHostName() {
@@ -91,4 +89,4 @@ private int findStartOfFirewallText() {
9189
throw new IllegalArgumentException("The image seems to be malformed");
9290
}
9391

94-
}
92+
}

src/main/java/me/checkium/vhackapi/console/PasswordImageHelper.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
package me.checkium.vhackapi.console;
22

3-
import org.json.JSONObject;
4-
53
import java.io.IOException;
64
import java.lang.reflect.MalformedParametersException;
75
import java.util.Arrays;
86
import java.util.regex.Matcher;
97
import java.util.regex.Pattern;
108

11-
//TODO: cleanup code
9+
import org.json.JSONObject;
10+
11+
/**
12+
* Created by Julian Mundhahs on 23.02.2017.
13+
*/
1214
public class PasswordImageHelper {
1315

1416
String secret;

src/main/java/me/checkium/vhackapi/console/Target.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public Target(String hostname, NetworkImage img){
2121
this.img = img;
2222
this.hostname = hostname;
2323
resolveHostname();
24-
//firewallLevel = img.getFirewallLevel();
25-
isWatched = img.isWatchedByFBI();
24+
firewallLevel = img.getFirewallLevel();
25+
isWatched = img.checkForAnonymity();
2626

2727

2828

0 commit comments

Comments
 (0)