Skip to content

Commit

Permalink
add some structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansrf committed Aug 24, 2023
1 parent c6d3331 commit 4792733
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ WORKDIR /root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y build-essential git python3 python3-pip wget
RUN pip3 install torch torchvision torchaudio
RUN pip3 install torch torchvision torchaudio lief

RUN mkdir dataset && cd dataset && \
wget --no-verbose --no-parent --recursive --reject html,signature --no-check-certificate https://security.ece.cmu.edu/byteweight/elf_64/
# RUN mkdir dataset && cd dataset && \
# wget --no-verbose --no-parent --recursive --reject html,signature --no-check-certificate https://security.ece.cmu.edu/byteweight/elf_64/

ENTRYPOINT ["/bin/bash"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Identifying Function Boundaries using CNN's

## Quickstart
```sh
git clone [url]
cd bsidescam23
./scripts/build.sh
./scripts/run.sh
cd app
python3 src/driver.py
```
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker build -t mov0xdecafe/fi .
3 changes: 3 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run -it -v $PWD/src:/root/app/src mov0xdecafe/fi
13 changes: 13 additions & 0 deletions src/dataset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class DatasetGenerator():
"""Generates the dataset for processing by the CNN"""

def __init__(self):
pass

def _get_code_elf(self, elf_bin=None):
if elf_bin is None:
return None

class FunctionIdentificationDataset(torch.utils.data.Dataset):
def __init__(self):
pass
4 changes: 4 additions & 0 deletions src/driver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#/usr/bin/env python3

if __name__ == "__main__":
print("Function Boundary Identification")

0 comments on commit 4792733

Please sign in to comment.