diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2eb02c9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,38 @@ +FROM ubuntu:18.04 + +MAINTAINER Sebastien Macke + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y \ + build-essential \ + libcurl4-openssl-dev python3-dev libssl-dev \ + ldap-utils \ + libmariadbclient-dev \ + ike-scan unzip default-jdk \ + libsqlite3-dev libsqlcipher-dev \ + libpq-dev \ + python3-pip + +# cx_oracle +RUN apt-get update && apt-get install -y libaio1 wget unzip +WORKDIR /opt/oracle +RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip +RUN unzip instantclient-basiclite-linuxx64.zip +RUN rm -f instantclient-basiclite-linuxx64.zip +RUN cd /opt/oracle/instantclient* +RUN rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci +RUN echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf +RUN ldconfig + +# xfreerdp (see https://github.com/FreeRDP/FreeRDP/wiki/Compilation) +RUN apt-get update && apt-get install -y ninja-build build-essential git-core debhelper cdbs dpkg-dev autotools-dev cmake pkg-config xmlto libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libxi-dev libxrender-dev libxext-dev libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfaad-dev libfaac-dev \ + && apt-get install -y libavutil-dev libavcodec-dev libavresample-dev +RUN git clone https://github.com/FreeRDP/FreeRDP/ /tmp/FreeRDP +WORKDIR /tmp/FreeRDP +RUN cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON . && cmake --build . && cmake --build . --target install + +WORKDIR /opt/patator +RUN python3 -m pip install patator + +ENTRYPOINT ["patator.py"] diff --git a/Vagrantfile b/Vagrantfile index f571990..4f91739 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -18,6 +18,18 @@ apt-get install -y ike-scan unzip default-jdk apt-get install -y libsqlite3-dev libsqlcipher-dev # pysqlcipher apt-get install -y libpq-dev # psycopg2 +# cx_oracle +apt-get install -y libaio1 wget unzip +rm -fr /opt/oracle +mkdir /opt/oracle && cd /opt/oracle +wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip +unzip instantclient-basiclite-linuxx64.zip +rm -f instantclient-basiclite-linuxx64.zip +cd /opt/oracle/instantclient* +rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci +echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf +ldconfig + # xfreerdp (see https://github.com/FreeRDP/FreeRDP/wiki/Compilation) apt-get install -y ninja-build build-essential git-core debhelper cdbs dpkg-dev autotools-dev cmake pkg-config xmlto libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libxi-dev libxrender-dev libxext-dev libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfaad-dev libfaac-dev apt-get install -y libavutil-dev libavcodec-dev libavresample-dev diff --git a/patator.py b/patator.py index 7018058..28fc727 100755 --- a/patator.py +++ b/patator.py @@ -241,8 +241,8 @@ The numbers of every keyword given on the command line must be specified. Use ',' to iterate over the cartesian product of sets and use ':' to iterate over sets simultaneously. -If the value of a module option starts with the letter @, the rest should be a -filename. The contents of the file will be loaded into the option: +If the value of a module option starts with the @ character, the rest should be +a filename. The contents of the file will be loaded into the option: ./module raw_request=@req.txt 0=vhosts.txt 1=uagents.txt * Keywords