-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (22 loc) · 947 Bytes
/
tcp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: TCP
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Dependencies Installation
run: sudo pip install -r requirements.txt
- name: Target Creation
run: sudo docker run --cap-add=NET_ADMIN --name findwall_target -d ghcr.io/s1ntaxe770r/image:latest
- name: Target Configuration (#1)
run: sudo docker exec -t findwall_target apt install -y netcat iptables
- name: Target Configuration (#2)
run: sudo docker exec -t findwall_target iptables -A INPUT -p tcp --destination-port 8001 -j DROP
- name: TCP Scanning
run: python findwall.py --ssh-host $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' findwall_target) --ssh-port 22 --ssh-username test --ssh-password test --ports 8000-8010 --threads 3
- name: Clean-up
run: sudo docker rm findwall_target --force