Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Richardson
authored and
James Richardson
committed
Feb 10, 2016
1 parent
b3d772c
commit 2ddedd0
Showing
51 changed files
with
11,507 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.iml | ||
*.idea | ||
*.DS_Store | ||
target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# Disassemble | ||
A binary disassembler written in Java with Capstone bindings | ||
A binary disassembler written in Java with Capstone bindings | ||
|
||
MachO 64bit ABI support is in the works. Future plans will include ELF and PE ABIs. Disassembling is made possible by the Capstone project and its Java bindings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>CapStonTest</groupId> | ||
<artifactId>capstonetest</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>net.java.dev.jna</groupId> | ||
<artifactId>jna</artifactId> | ||
<version>4.2.1</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import abi.mach.parse.MachParser64; | ||
import abi.mach.parse.Reader; | ||
|
||
import java.io.File; | ||
|
||
public class Main { | ||
|
||
public static void main(String[] args){ | ||
File in =new File("/Users/jamesrichardson/Desktop/reverse/a.out"); | ||
|
||
try { | ||
Reader.Read(in); | ||
}catch(Exception e){ | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package abi.generic; | ||
|
||
import java.util.LinkedList; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public abstract class ABI { | ||
|
||
protected final byte[] raw; | ||
|
||
public ABI(byte[] binary){ | ||
raw=binary; | ||
} | ||
|
||
public abstract byte[] getRaw(); | ||
public abstract Header getHeader(); | ||
public abstract Arch getArch(); | ||
public abstract LinkedList<Command> getCommands(); | ||
public abstract LinkedList<Segment> getSegments(); | ||
public abstract LinkedList<Section> getSections(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package abi.generic; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public enum Arch { | ||
SIXTEEN, | ||
THIRTYTWO, | ||
SIXTYFOUR | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package abi.generic; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public interface Command { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package abi.generic; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public interface Header { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package abi.generic; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public abstract class Parser<T extends ABI> { | ||
|
||
protected final T model; | ||
|
||
public Parser(T model){ | ||
this.model = model; | ||
} | ||
|
||
public abstract T getModel(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package abi.generic; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public interface Section { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package abi.generic; | ||
|
||
/** | ||
* Created by jamesrichardson on 2/10/16. | ||
*/ | ||
public interface Segment { | ||
} |
Oops, something went wrong.