Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Python Multi-Port Network Exposure Lab

Overview

This lab demonstrates how a Python script can be transferred from a Kali Linux VM to a Linux Mint VM and executed to create multiple TCP listening ports.

The purpose was to understand how process execution can change a host's network exposure and increase its attack surface.

Lab Environment

  • VM1 – Kali Linux: 192.168.10.11
  • VM2 – Linux Mint: 192.168.20.11
  • File: openPorts.py
  • Transfer Method: HTTP
image

1. Python Multi-Port Listener

openPorts.py was created using Python sockets and threading to establish multiple TCP listeners simultaneously.

The script was configured to listen on selected ports including:

3000, 3306, 4444, 5000, 5432, 8000, 8080, 8081, 8888, 9000, 9090, 9999, 10000

image

2. HTTP File Transfer and Execution

Kali was configured as a temporary HTTP server to make openPorts.py available to VM2.

The transferred script was executed on Linux Mint

python3 -m http.server 8000

Linux Mint retrieved the script using:

curl -O http://192.168.10.11:8000/openPorts.py
image

3. Verification

The listening ports were verified locally using nmap...

image

About

Python multi-port exposure and Linux VM file-transfer lab for network security analysis.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors