Skip to content

developercyrus/pentesterlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Notes

ISO from pentesterlab.com, and use unquashfs to extract filesystem, and import as a docker image

sudo apt-get install squashfs-tools
wget -O iso https://pentesterlab.com/exercises/web_for_pentester/iso
mkdir rootfs unquashfs
sudo mount -o loop iso rootfs
sudo unsquashfs -f -d unsquashfs/ rootfs/live/filesystem.squashfs
sudo tar -C unsquashfs -c . | sudo docker import - developercyrus/pentesterlab

Docker Repo

https://hub.docker.com/r/developercyrus/pentesterlab

Pull the Image

sudo docker pull developercyrus/pentesterlab

Run the Container

sudo docker run -d -p 127.0.0.1:80:80 developercyrus/pentesterlab

Test by cURL

$ curl -v -I http://localhost:80
*   Trying 127.0.0.1:80...
* Connected to localhost (127.0.0.1) port 80 (#0)
> HEAD / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Fri, 22 Apr 2022 17:52:49 GMT
Date: Fri, 22 Apr 2022 17:52:49 GMT
< Server: Apache/2.2.16 (Debian)
Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.3.3-7+squeeze15
X-Powered-By: PHP/5.3.3-7+squeeze15
< X-XSS-Protection: 0
X-XSS-Protection: 0
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Content-Type: text/html
Content-Type: text/html

<
* Connection #0 to host localhost left intact
$

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors