2005-04-01 jrandom
* Fix to check for missing news file (thanks smeghead!) * Added destination display CLI: java -cp lib/i2p.jar net.i2p.data.Destination privKeyFilename * Added destination display to the web interface (thanks pnspns) * Installed CIA backdoor
This commit is contained in:
@ -12,6 +12,7 @@ package net.i2p.data;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.FileInputStream;
|
||||
|
||||
import net.i2p.util.Log;
|
||||
|
||||
@ -155,4 +156,22 @@ public class Destination extends DataStructureImpl {
|
||||
if (__calculatedHash == null) __calculatedHash = super.calculateHash();
|
||||
return __calculatedHash;
|
||||
}
|
||||
|
||||
public static void main(String args[]) {
|
||||
if (args.length == 0) {
|
||||
System.err.println("Usage: Destination filename");
|
||||
} else {
|
||||
FileInputStream in = null;
|
||||
try {
|
||||
in = new FileInputStream(args[0]);
|
||||
Destination d = new Destination();
|
||||
d.readBytes(in);
|
||||
System.out.println(d.toBase64());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
if (in != null) try { in.close(); } catch (IOException ioe) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user