nmap example.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-04-02 14:52:19 +02:00
parent fa022bc22a
commit ea84928ca6
3 changed files with 7 additions and 21 deletions
+4
View File
@@ -0,0 +1,4 @@
FROM kapow
RUN apk add nmap
COPY nmap.kapow .
CMD kapow nmap.kapow
+3
View File
@@ -0,0 +1,3 @@
POST /list/{ip} {
nmap -sL @value:request/match/ip > @fifo:response/body
}
-21
View File
@@ -1,21 +0,0 @@
from setuptools import setup
setup(
name='kapow',
version='0.0.1',
py_modules=['kapow'],
include_package_data=True,
install_requires=[
'aiofiles==0.4.0',
'aiohttp==3.5.4',
'pyparsing==2.3.1',
'Click==7.0'
],
zip_safe=True,
entry_points={
'console_scripts': [
'kapow = kapow:main',
]
}
)