Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Error Oracle 5/12 #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 12 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,32 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential python3-setuptools \
libcurl4-openssl-dev python3-dev libssl-dev \
ldap-utils \
libmysqlclient-dev \
libpq-dev \
ldap-utils libmysqlclient-dev libpq-dev \
ike-scan unzip default-jdk \
libsqlite3-dev \
libsqlcipher-dev \
python3-pip \
libsqlite3-dev libsqlcipher-dev \
python3-pip wget curl p7zip-full \
file \
&& rm -rf /var/lib/apt/lists/*

## cx_oracle
RUN apt-get update \
&& apt-get install -y --no-install-recommends libaio1 wget unzip git \
&& apt-get install -y --no-install-recommends libaio1 \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /opt/oracle
RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip \
&& wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip \
&& unzip instantclient-basiclite-linuxx64.zip \
&& rm -f instantclient-basiclite-linuxx64.zip \
&& unzip instantclient-sdk-linuxx64.zip \
&& rm -f instantclient-sdk-linuxx64.zip \
&& wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip

RUN unzip -o instantclient-basiclite-linuxx64.zip \
&& unzip -o instantclient-sdk-linuxx64.zip \
&& rm -f instantclient-basiclite-linuxx64.zip instantclient-sdk-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)
WORKDIR /opt/FreeRDP
RUN apt-get update \
&& apt-get install -y --no-install-recommends 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 libsdl2-dev libcjson-dev libpkcs11-helper1-dev \
Expand All @@ -45,25 +38,17 @@ RUN apt-get update \
&& cmake --install freerdp-build \
&& rm -rf /opt/FreeRDP

# patator
WORKDIR /opt/patator
COPY ./requirements.txt ./
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install -r requirements.txt

# uncomment for python2
# RUN apt-get update \
# && apt-get install -y --no-install-recommends python-pip ipython \
# && rm -rf /var/lib/apt/lists/* \
# && sed -e '/cx_Oracle/d' -e 's,pysqlcipher3,pysqlcipher,' requirements.txt | python2 -m pip install -r /dev/stdin \
# && git clone --branch 5.3 https://github.com/oracle/python-cx_Oracle \
# && cd python-cx_Oracle && export ORACLE_HOME=$(echo /opt/oracle/instantclient_*) && python2 setup.py build && python2 setup.py install

# utils
RUN apt-get update \
&& apt-get install -y --no-install-recommends ipython3 iputils-ping iproute2 netcat curl rsh-client telnet vim mlocate nmap \
&& rm -rf /var/lib/apt/lists/* \
&& echo 'set bg=dark' > /root/.vimrc

COPY ./patator.py ./
#COPY ./pass.txt ./ <----- Add a password bank file

ENTRYPOINT ["python3", "./patator.py"]
100 changes: 100 additions & 0 deletions pass.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
23456
123456789
azerty
1234561
qwerty
marseille
000000
1234567891
doudou
12345
loulou
123
password
azertyuiop
12345678
soleil
chouchou
1234
1234567
123123
123451
bonjour
111111
nicolas
jetaime
coucou
motdepasse
Status
julien
thomas
camille
010203
chocolat
iloveyou
iloveyou1
portugal
1234567890
alexandre
654321
maxime
00000
wxcvbn
oceane
pompier
12345671
marine
0000
maison
isabelle
celine
sandrine
pierre
caroline
elodie
olivier
mohamed
romain
badoo
football
princesse
nathalie
boubou
vincent
anthony
aurelie
caramel
dragon
sophie
amour
papillon
antoine
louloute
0123456789
sebastien
audrey
666666
emilie
naruto
france
987654321
voiture
789456
amandine
pauline
laurent
stephane
melanie
vanille
benjamin
chipie
valentin
159753
morgane
marion
sabrina
michel
aaaaaa
mar
cheval
samsung