Skip to content

Commit

Permalink
maybe fixed an issue with pregrabbing content in the url hook. maybe...
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Mar 23, 2011
1 parent b719071 commit e7a7101
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 39 deletions.
56 changes: 18 additions & 38 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified out/artifacts/ContraHook_jar/ContraHook.jar
Binary file not shown.
Binary file modified out/production/ContraHook/java/net/Parts.class
Binary file not shown.
Binary file modified out/production/ContraHook/java/net/URL$1.class
Binary file not shown.
Binary file modified out/production/ContraHook/java/net/URL.class
Binary file not shown.
3 changes: 2 additions & 1 deletion src/java/net/URL.java
Expand Up @@ -103,7 +103,7 @@ public URL(String spec) throws MalformedURLException {
public String filter(String url, String des) {
String content;
try {
InputStreamReader in = new InputStreamReader((InputStream) getContent());
InputStreamReader in = new InputStreamReader(openStream());
BufferedReader buff = new BufferedReader(in);
content = buff.readLine();
} catch (Exception e) {
Expand All @@ -112,6 +112,7 @@ public String filter(String url, String des) {
String res = "URL Hook: \"" + url + "\", Query: \"" + getQuery() + "\", Content: \"" + content + "\", Type: " + des;
System.out.println(res);
ContraUtil.log(res);
//Implement any logging/swapping/filtering here
/*
if (url.startsWith("https://impsoft.net/nexus/hashing.php")) {
return "http://recoders.org/contra/misc/hashing.php";
Expand Down

0 comments on commit e7a7101

Please sign in to comment.