Git Product home page Git Product logo

Comments (5)

glimchb avatar glimchb commented on August 18, 2024 1

it was never there... test installed it before running... dnf install -y nmap
make sense to actually add it to the dockerfile...

from opi-poc.

mestery avatar mestery commented on August 18, 2024

Have we removed nmap from the pxe container recently:

vagrant@bullseye:/git/opi-poc/integration$ docker compose -f docker-compose.pxe.yml exec -it pxe bash
[root@767b475f2286 /]# nmap --script broadcast-dhcp-discover
bash: nmap: command not found
[root@767b475f2286 /]#

from opi-poc.

mestery avatar mestery commented on August 18, 2024

It seems that the nmap command you document here fails on the first run every time, but works afterwards every time.

[root@450fb1d715b5 /]# nmap --script broadcast-dhcp-discover
Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-11 21:26 UTC
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.20 seconds
[root@450fb1d715b5 /]# nmap --script broadcast-dhcp-discover
Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-11 21:27 UTC
Pre-scan script results:
| broadcast-dhcp-discover:
|   Response 1 of 1:
|     Interface: eth0
|     IP Offered: 10.127.127.11
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 10.127.127.3
|     IP Address Lease Time: 10m00s
|_    Subnet Mask: 255.255.255.0
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.20 seconds
[root@450fb1d715b5 /]# nmap --script broadcast-dhcp-discover
Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-11 21:27 UTC
Pre-scan script results:
| broadcast-dhcp-discover:
|   Response 1 of 1:
|     Interface: eth0
|     IP Offered: 10.127.127.11
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 10.127.127.3
|     IP Address Lease Time: 10m00s
|_    Subnet Mask: 255.255.255.0
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.22 seconds
[root@450fb1d715b5 /]# nmap --script broadcast-dhcp-discover
Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-11 21:27 UTC
Pre-scan script results:
| broadcast-dhcp-discover:
|   Response 1 of 1:
|     Interface: eth0
|     IP Offered: 10.127.127.11
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 10.127.127.3
|     IP Address Lease Time: 10m00s
|_    Subnet Mask: 255.255.255.0
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.20 seconds
[root@450fb1d715b5 /]#

from opi-poc.

glimchb avatar glimchb commented on August 18, 2024

interesting... I haven't noticed...

from opi-poc.

glimchb avatar glimchb commented on August 18, 2024

also fails here https://github.com/opiproject/opi-poc/runs/7325367441?check_suite_focus=true

+ bash -c 'docker-compose exec -T pxe nmap --script broadcast-dhcp-discover'
Starting Nmap 7.92 ( https://nmap.org/ ) at 2022-07-13 16:46 UTC
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.68 seconds
+ bash -c 'docker-compose exec -T pxe nmap --script broadcast-dhcp-discover'
Starting Nmap 7.92 ( https://nmap.org/ ) at 2022-07-13 16:46 UTC
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.32 seconds
+ bash -c 'docker-compose exec -T pxe nmap --script broadcast-dhcp-discover'
Starting Nmap 7.92 ( https://nmap.org/ ) at 2022-07-13 16:47 UTC
Pre-scan script results:
WARNING: No targets were specified, so 0 hosts scanned.
| broadcast-dhcp-discover: 
|   Response 1 of 1: 
|     Interface: eth0
|     IP Offered: 10.127.127.12
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 10.127.127.3
|     IP Address Lease Time: 10m00s
|_    Subnet Mask: 255.255.255.0
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.36 seconds

from opi-poc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.