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

Implemented another thing #47

Merged
merged 5 commits into from
Feb 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# vHackAPI-Java

## There has been a update lately that was messed things up. Were working on integrating the changes.
Expand All @@ -8,6 +9,7 @@
[![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)]()

### 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)
### Active Contributors: [@Checkium](https://github.com/checkium)(API/Manager), [@C0mm4nd](https://github.com/C0mm4nd)(API), [@Qup42](https://github.com/Qup42)(API OCR)
###### Don't forget to add your name here when you pull request.
Current feature list:
- Ability to scan the network for IP addresses.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/checkium/vhackapi/console/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public TransferResult trojanTransfer(){

public void clearLogs(){

Utils.StringRequest("user::::pass::::uhash::::target", Console.user + "::::" + Console.pass + "::::" + Console.uHash + "::::" + IP, "vh_clearAccessLog.php");
Utils.JSONRequest("user::::pass::::uhash::::target", Console.user + "::::" + Console.pass + "::::" + Console.uHash + "::::" + IP, "vh_clearAccessLog.php");

}

public String getUsername() {
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/me/checkium/vhackapi/console/Image.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.checkium.vhackapi.console;


import javax.imageio.ImageIO;
import javax.xml.bind.DatatypeConverter;
import java.awt.image.BufferedImage;
Expand All @@ -8,7 +9,9 @@
import java.io.IOException;
import java.math.BigInteger;

//TODO: cleanup code
/**
* Created by Julian Mundhahs on 23.02.2017.
*/
public abstract class Image {

BufferedImage image;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/me/checkium/vhackapi/console/Letters.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.HashMap;

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

private static HashMap<BigInteger, Character> table;
Expand Down
8 changes: 3 additions & 5 deletions src/main/java/me/checkium/vhackapi/console/NetworkImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.awt.image.BufferedImage;
import java.io.IOException;

//TODO: cleanup code
public class NetworkImage extends Image {

private String hostName = "";
Expand Down Expand Up @@ -68,9 +67,8 @@ private void readInHostname() {
}
}

public boolean isWatchedByFBI()
{
return checkRedPixel();
public boolean checkForAnonymity() {
return anonymous;
}

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

}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package me.checkium.vhackapi.console;

import org.json.JSONObject;

import java.io.IOException;
import java.lang.reflect.MalformedParametersException;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

//TODO: cleanup code
import org.json.JSONObject;

/**
* Created by Julian Mundhahs on 23.02.2017.
*/
public class PasswordImageHelper {

String secret;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/checkium/vhackapi/console/Target.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public Target(String hostname, NetworkImage img){
this.img = img;
this.hostname = hostname;
resolveHostname();
//firewallLevel = img.getFirewallLevel();
isWatched = img.isWatchedByFBI();
firewallLevel = img.getFirewallLevel();
isWatched = img.checkForAnonymity();



Expand Down