-
Notifications
You must be signed in to change notification settings - Fork 118
Guide: Java Connector
Schnorcher Sepp edited this page Sep 12, 2015
·
15 revisions
eu.peinjector
|
+-- example
| |
| +-- EXAMPLE.java
| A quick example to show how it works.
| (configure a peinjector-server and infect a file with it)
|
+-- libpe
|
+-- LibPeControlProtocol.java
| This class can configure a peinjector-server
| over the control port (=WebGUI)
|
+-- LibPeDataProtocol.java
| This class send a pe-header to the server over the
| data port and resive the LibPePatch (class)
|
+-- LibPePatch.java
| With this class you can infect the filestream of the file
|
+-- LibPeServerConfig.java
| This class parse the peinject-server config String
|
+-- LibPeShellcodeFactory.java
This class build shellcode to infect files
First of all you need a peinjector-server. interceptor and control are not needed. (Use the Guide:-full-installation or Guide:-Raspberry-Pi-image)
Make sure, that the control port and data port are reachable:
/etc/peinjector/config.ini
; 1 ... local only
; 0 ... global
data_interface=0
control_interface=0
restart the peinjector-server
sudo service peinjector stop
sudo service peinjector start
Download the Java Connector and copy the eu/peinjector folder to your Java project. Configure Example.java (peinjectorserver, controlPort, dataPort, sourceFile, infectFile) and run the main method.
The Java Connector can manage the peinjector (= WebGUI)
and send and infect files in the stream. (= Proxy)