10000 Upd. by Prodject · Pull Request #1 · Prodject/patator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Upd. #1

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

Open
wants to merge 90 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
49b541d
Work in progress for #67
lanjelot Aug 2, 2018
1ca6a41
Fixes #67
lanjelot Aug 4, 2018
13eadce
Merge branch 'rdp_gateway'
lanjelot Aug 4, 2018
53ace4f
Fixes #116
lanjelot Jun 27, 2019
22e84d9
Fixes #117
lanjelot Jun 28, 2019
3c72f68
add ssl support for TCP_fuzz
Jul 27, 2019
988d211
adding port in example command
Jul 27, 2019
748bb90
[HTTP_FUZZ] cURL path-as-is support in command-line
MrTchuss Oct 9, 2019
a1db6bf
Add pathasis option to http_fuzz
lanjelot Oct 13, 2019
03fdb3c
Add ssl option to tcp_fuzz
lanjelot Oct 13, 2019
95ffe43
Merge commit '03fdb3c'
lanjelot Oct 13, 2019
e539ab5
Fixes #120
lanjelot Oct 16, 2019
3135ea1
Fixes #120
lanjelot Oct 17, 2019
7751130
Merge branch 'option_save_output_only'
lanjelot Oct 17, 2019
1732fbb
Fixes #118
lanjelot Oct 17, 2019
22ba733
Fixes #103 and more
lanjelot Nov 24, 2019
94cdfb1
Fixes #27
lanjelot Nov 24, 2019
a92c06f
Fixes #89
lanjelot Nov 24, 2019
e975529
Fixes #107
lanjelot Nov 30, 2019
f5b161a
Fix Python3 compat
lanjelot Nov 30, 2019
98bd95b
Switch to bionic64
lanjelot Mar 21, 2020
30abee9
Update versions
lanjelot Mar 22, 2020
704dab8
Release v0.8
lanjelot Mar 22, 2020
426c257
Fixes #128
lanjelot Mar 23, 2020
1303350
New --groups option (fixes #124)
lanjelot Mar 26, 2020
2b78b34
Fixes #53 somewhat
lanjelot Mar 27, 2020
b25e85d
Fix file line count function
lanjelot Mar 27, 2020
fd84a31
Fixes #74
lanjelot Apr 7, 2020
13d7bf7
Fixes #74 typo
lanjelot Apr 7, 2020
b6316de
Fixes #132
lanjelot Apr 29, 2020
2a23299
Fixes #134
lanjelot May 7, 2020
2a6744a
Python3 support for pysqlcipher.
haxxinen Jul 7, 2020
7454528
Fixes #140 and #141
lanjelot Jul 7, 2020
6d29448
Merge branch 'haxxinen-patch-2'
lanjelot Jul 7, 2020
25fecf1
Fixes #106
lanjelot Jul 7, 2020
902c650
Fixes #105
lanjelot Jul 10, 2020
da3d975
Add docker-compose and fix bugs
lanjelot Jul 19, 2020
eb7ac4b
Fix #138 to add dcom_login module
lanjelot Jul 21, 2020
288dac8
Add SNMP tests
lanjelot Jul 25, 2020
0d7661b
Release v0.9
lanjelot Jul 26, 2020
6cdc51d
Fix #149
lanjelot Nov 23, 2020
fed68fd
Fix http_fuzz auto_urlencode
lanjelot Nov 29, 2020
4b5d958
Merge branch 'fix-urlencode'
lanjelot Nov 29, 2020
2692d6a
Add docker usage to README
lanjelot Nov 29, 2020
d96663b
New skip action
lanjelot Dec 23, 2020
452819f
Update documentation
lanjelot Dec 23, 2020
f3983f3
Switched from pycrypto to pycryptodomex
fvcr Jan 11, 2021
642a6f4
Add script to build and push docker image to dockerhub
lanjelot Jan 29, 2021
5947f5f
Merge pull request #154 from fvcr/master
lanjelot Jan 29, 2021
c4c8a06
Corrected & added IKEv1 transforms
Zamanry Mar 1, 2021
59eb8fa
Fixed IKEv1 port variable and enabled enc. ciphers
Zamanry Mar 29, 2021
54e09bc
Fixed comma/bracket in IKE encryption
Zamanry Apr 13, 2021
487109a
Fix Dockerfile
lanjelot Jun 17, 2021
23d0cfe
Fix #158
lanjelot Jul 6, 2021
b8c0287
Merge pull request #157 from Zamanry/master
lanjelot Jul 6, 2021
29511c9
Fix tabs in README
lanjelot Jul 6, 2021
e483167
Fix #162
lanjelot Jul 6, 2021
72efc0b
raw_input() was removed from Python on 1/1/2020
cclauss Aug 4, 2021
c112a2a
Fix #156
lanjelot Jan 7, 2022
a93ae7a
Fix #172
lanjelot Jan 7, 2022
8d00e46
Merge pull request #165 from cclauss/patch-1
lanjelot Jan 7, 2022
b5ed210
Fix typos discovered by codespell
cclauss Jan 7, 2022
5072a56
Only set pycurl RESOLVE opt if resolve flag is set and not empty
Feb 27, 2022
b97f8b2
Merge pull request #176 from caribpa/http-fuzz-resolve-fix
lanjelot Mar 8, 2022
4690822
Fix #183
lanjelot Jun 22, 2022
5adfad0
Write XML ending to correct file when using --xml
Jun 27, 2022
c783c8b
Add ed25519 ssh support
laxa Sep 1, 2023
3190a42
Merge pull request #199 from laxa/add_ed25519_support
lanjelot Sep 25, 2023
97a694f
Merge pull request #186 from gblomqvist/master
lanjelot Sep 25, 2023
e6140a1
fix: progress display is shown when it should not
Oct 7, 2023
85fc301
Fix #192 #196
lanjelot Oct 9, 2023
f5d660f
Fix #198
lanjelot Oct 9, 2023
204a12a
Release v1.0
lanjelot Oct 9, 2023
20e800a
Fix #205: pin FreeRDP version 2.9.0
lanjelot Jan 5, 2024
41fd71b
added DCERPC enum/bruteforce/fuzzing
Oct 8, 2024
72a06da
Fix #214: update wrap_socket() usage
gildasio Oct 10, 2024
3c4bc3b
Merge pull request #222 from gildasio/master
lanjelot Oct 16, 2024
f8d73c9
Merge pull request #221 from s0i37/master
lanjelot Oct 16, 2024
78d6aa3
Merge pull request #200 from chovanecadam/fix-status
lanjelot Oct 16, 2024
fa2b158
fixed errors and suppressed deprecation warning
fuggles-5555 Nov 8, 2024
3f544cc
Fix unzip problem
gildasio Jan 10, 2025
55dd7fa
Merge pull request #228 from gildasio/master
lanjelot Jan 31, 2025
7c70673
Merge pull request #223 from fuggles-5555/fix-errors
lanjelot Jan 31, 2025
20e09ff
Bump deps and support Python-3.13
lanjelot Feb 16, 2025
5be299a
Release v1.1
lanjelot Feb 16, 2025
44adec8
Fixup packaging
lanjelot Feb 17, 2025
ab7300e
Fix release.sh
lanjelot Feb 17, 2025
e763ba4
Update README
lanjelot Feb 17, 2025
09d56ce
Fix #226
lanjelot Feb 17, 2025
964e87c
Add deepwiki link
lanjelot May 20, 2025
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
60 changes: 60 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
FROM python:3.13

# 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 \
libmariadb-dev \
libpq-dev \
ike-scan unzip default-jdk \
libsqlite3-dev \
libsqlcipher-dev \
python3-pip \
pkg-config \
&& rm -rf /var/lib/apt/lists/*

## cx_oracle
RUN apt-get update \
&& apt-get install -y --no-install-recommends libaio1 wget unzip git \
&& 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 \
&& unzip -n instantclient-sdk-linuxx64.zip \
&& rm -f instantclient-basiclite-linuxx64.zip \
&& rm -f 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 cmake cmake-curses-gui clang-format ccache opencl-c-headers ocl-icd-opencl-dev libmp3lame-dev libopus-dev libsoxr-dev libpam0g-dev 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 libgsm1-dev libusb-1.0-0-dev uuid-dev libxml2-dev libfaad-dev libsdl2-dev libsdl2-ttf-dev libcjson-dev libpkcs11-helper-dev liburiparser-dev libkrb5-dev libsystemd-dev libfuse3-dev libswscale-dev libcairo2-dev libavutil-dev libavcodec-dev libswresample-dev libwebkit2gtk-4.0-dev libpkcs11-helper1-dev \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 --branch 3.12.0 https://github.com/freerdp/freerdp.git \
&& cmake -GNinja -B freerdp-build -S freerdp -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DWITH_SERVER=OFF -DWITH_SAMPLE=OFF -DWITH_PLATFORM_SERVER=OFF -DUSE_UNWIND=OFF -DWITH_SWSCALE=OFF -DWITH_FFMPEG=OFF -DWITH_WEBVIEW=OFF \
&& cmake --build freerdp-build \
&& 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

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

COPY ./src/patator/patator.py ./
ENTRYPOINT ["python3", "./patator.py"]
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

69 changes: 43 additions & 26 deletions README.md
< F438 /tr>
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ Currently it supports the following modules:
* smtp_rcpt : Enumerate valid users using the SMTP RCPT TO command
* finger_lookup : Enumerate valid users using Finger
* http_fuzz : Brute-force HTTP/HTTPS
* rdp_gateway : Brute-force RDP Gateway
* ajp_fuzz : Brute-force AJP
* pop_login : Brute-force POP
* pop_passd : Brute-force poppassd (not POP3)
* imap_login : Brute-force IMAP
* ldap_login : Brute-force LDAP
* dcom_login : Brute-force DCOM
* smb_login : Brute-force SMB
* smb_lookupsid : Brute-force SMB SID-lookup
* rlogin_login : Brute-force rlogin
Expand All @@ -39,19 +41,34 @@ Currently it supports the following modules:
* umbraco_crack : Crack Umbraco HMAC-SHA1 password hashes
```

The name "Patator" comes from [this](https://www.youtube.com/watch?v=kU2yPJJdpag).
The name "Patator" comes from [this](https://www.youtube.com/watch?v=9sF9fTALhVA).

Patator is NOT script-kiddie friendly, please read the full README inside [patator.py](patator.py) before reporting.
Patator is NOT script-kiddie friendly, please read the below, [DeepWiki](https://deepwiki.com/lanjelot/patator) and the [wiki](https://github.com/lanjelot/patator/wiki) before reporting.

And please donate if you like this project.

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=SB36VJH4EM5WG&lc=AU&item_name=lanjelot&item_number=patator&currency_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
Please donate if you like this project! :)
<div align="center">

| PayPal | Bitcoin |
| -------- | ------- |
| [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=SB36VJH4EM5WG&lc=AU&item_name=lanjelot&item_number=patator&currency_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)| [![bitcoin](donate/donate-bitcoin.png)](https://raw.githubusercontent.com/lanjelot/patator/master/donate/bitcoin-address.txt) |

</div>

Many thanks! [@lanjelot](https://twitter.com/lanjelot)

## Install

```
git clone https://github.com/lanjelot/patator.git
git clone https://github.com/danielmiessler/SecLists.git
docker build -t patator patator/
docker run -it --rm -v $PWD/SecLists/Passwords:/mnt patator dummy_test data=FILE0 0=/mnt/richelieu-french-top5000.txt
```

## Usage Examples

* FTP : Enumerating users denied login in vsftpd/userlist
* FTP : Enumerating users denied login in `vsftpd/userlist`

```
$ ftp_login host=10.0.0.1 user=FILE0 0=logins.txt password=asdf -x ignore:mesg='Login incorrect.' -x ignore,reset,retry:code=500
Expand All @@ -67,7 +84,7 @@ $ ftp_login host=10.0.0.1 user=FILE0 0=logins.txt password=asdf -x ignore:mesg='
...
```

Tested against `vsftpd-3.0.2-9` on `CentOS 7.0-1406`
Tested against `vsftpd-3.0.2-9` on `CentOS 7.0-1406`.

* SSH : Time-based user enumeration

Expand All @@ -83,7 +100,7 @@ $ ssh_login host=10.0.0.1 user=FILE0 0=logins.txt password=$(perl -e "print 'A'x
...
```

Tested against openssh-server 1:6.0p1-4+deb7u2 on Debian 7.8
Tested against `openssh-server 1:6.0p1-4+deb7u2` on `Debian 7.8`.

* HTTP : Brute-force phpMyAdmin logon

Expand All @@ -107,9 +124,9 @@ $ grep AllowNoPassword /tmp/qsdf/72_200\:13215\:0\:0.351.txt
... class="icon ic_s_error" /> Login without a password is forbidden by configuration (see AllowNoPassword)</div><noscript>
```

Tested against phpMyAdmin 4.2.7.1.
Tested against `phpMyAdmin 4.2.7.1`.

* IKE : Enumerate transforms supported by VPN peer
* IKEv1 : Enumerate transforms supported by VPN peer

```
# ike_enum host=10.0.0.1 transform=MOD0 0=TRANS aggressive=RANGE1 1=int:0-1 -x ignore:fgrep='NO-PROPOSAL'
Expand All @@ -118,29 +135,29 @@ Tested against phpMyAdmin 4.2.7.1.
16:52:58 patator INFO - code size time | candidate | num | mesg
16:52:58 patator INFO - -----------------------------------------------------------------------------
16:53:03 patator INFO - 0 70 0.034 | 5,1,1,2:0 | 1539 | Handshake returned: Enc=3DES Hash=MD5 Group=2:modp1024 Auth=PSK (Main)
16:53:03 patator INFO - 0 72 0.031 | 5,1,65001,2:0 | 1579 | Handshake returned: Enc=3DES Hash=MD5 Group=2:modp1024 Auth=XAUTH (Main)
16:53:03 patator INFO - 0 72 0.031 | 5,1,65001,2:0 | 1579 | Handshake returned: Enc=3DES Hash=MD5 Group=2:modp1024 Auth=XAUTH&PSK (Main)
16:53:03 patator INFO - 0 76 0.033 | 5,1,1,2:1 | 1540 | Handshake returned: Enc=3DES Hash=MD5 Group=2:modp1024 Auth=PSK (Aggressive)
16:53:03 patator INFO - 0 78 0.034 | 5,1,65001,2:1 | 1580 | Handshake returned: Enc=3DES Hash=MD5 Group=2:modp1024 Auth=XAUTH (Aggressive)
16:53:03 patator INFO - 0 78 0.034 | 5,1,65001,2:1 | 1580 | Handshake returned: Enc=3DES Hash=MD5 Group=2:modp1024 Auth=XAUTH&PSK (Aggressive)
16:53:06 patator INFO - 0 84 0.034 | 7/128,2,1,2:0 | 2371 | Handshake returned: Enc=AES KeyLength=128 Hash=SHA1 Group=2:modp1024 Auth=PSK (Main)
16:53:06 patator INFO - 0 90 0.033 | 7/128,2,1,2:1 | 2372 | Handshake returned: Enc=AES KeyLength=128 Hash=SHA1 Group=2:modp1024 Auth=PSK (Aggressive)
16:53:06 patator INFO - 0 86 0.034 | 7/128,2,65001,2:0 | 2411 | Handshake returned: Enc=AES KeyLength=128 Hash=SHA1 Group=2:modp1024 Auth=XAUTH (Main)
16:53:06 patator INFO - 0 92 0.035 | 7/128,2,65001,2:1 | 2412 | Handshake returned: Enc=AES KeyLength=128 Hash=SHA1 Group=2:modp1024 Auth=XAUTH (Aggressive)
16:53:06 patator INFO - 0 86 0.034 | 7/128,2,65001,2:0 | 2411 | Handshake returned: Enc=AES KeyLength=128 Hash=SHA1 Group=2:modp1024 Auth=XAUTH&PSK (Main)
16:53:06 patator INFO - 0 92 0.035 | 7/128,2,65001,2:1 | 2412 | Handshake returned: Enc=AES KeyLength=128 Hash=SHA1 Group=2:modp1024 Auth=XAUTH&PSK (Aggressive)

+ 10.0.0.1:500 (Main Mode)
Encryption Hash Auth Group
---------- ---------- ---------- ----------
3DES MD5 PSK modp1024
3DES MD5 XAUTH modp1024
AES128 SHA1 PSK modp1024
AES128 SHA1 XAUTH modp1024
Encryption Hash Auth Group
---------- ---------- ---------- ----------
3DES MD5 PSK modp1024
3DES MD5 XAUTH&PSK modp1024
AES128 SHA1 PSK modp1024
AES128 SHA1 XAUTH&PSK modp1024

+ 10.0.0.1:500 (Aggressive Mode)
Encryption Hash Auth Group
---------- ---------- ---------- ----------
3DES MD5 PSK modp1024
3DES MD5 XAUTH modp1024
AES128 SHA1 PSK modp1024
AES128 SHA1 XAUTH modp1024
Encryption Hash Auth Group
---------- ---------- ---------- ----------
3DES MD5 PSK modp1024
3DES MD5 XAUTH&PSK modp1024
AES128 SHA1 PSK modp1024
AES128 SHA1 XAUTH&PSK modp1024
16:53:11 patator INFO - Hits/Done/Skip/Fail/Size: 8/3840/0/0/3840, Avg: 284 r/s, Time: 0h 0m 13s
```

Expand Down Expand Up @@ -222,7 +239,7 @@ Networks -----------------------------------------
03:18:53 patator INFO - Hits/Done/Skip/Fail/Size: 11/1000/0/0/1000, Avg: 133 r/s, Time: 0h 0m 7s
```

Also notice that test.hsc.fr. is the start of a new zone because we got NOERROR and no IP address.
Also notice that `test.hsc.fr.` is the start of a new zone because we got NOERROR and no IP address.

* DNS : Reverse lookup two netblocks owned by Google

Expand Down
50 changes: 0 additions & 50 deletions Vagrantfile

This file was deleted.

58 changes: 58 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
services:
unix:
build: testing/unix
image: patator-unix-testing
# ports:
# - "21:21"
# - "22:22"
# - "23:23"
# - "25:25"
# - "79:79"
# - "80:80"
# - "106:106"
# - "110:110"
# - "139:139"
# - "143:143"
# - "389:389"
# - "445:445"
# - "513:513"
# - "636:636"
# - "993:993"
# - "995:995"
# - "3306:3306"
# - "4444:4444"
# - "5432:5432"
# - "5900:5900"
# - "8009:8009"
# - "8080:8080"
# - "161:161/udp"
# volumes:
# - .:/opt/patator

oracle:
image: oracleinanutshell/oracle-xe-11g
environment:
- ORACLE_ENABLE_XDB=true
ports:
- "1521:1521"

mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password1
ports:
- "1433:1433"

patator:
build: .
image: patator
depends_on:
- unix
- oracle
- mssql
environment:
- DISPLAY
volumes:
- ./src/patator/:/opt/patator/
- /tmp/.X11-unix:/tmp/.X11-unix
1 change: 1 addition & 0 deletions donate/bitcoin-address.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bitcoin:1MiukC6ZXB6vt29xabVfHQT6DMiEeoDPQJ
Binary file added donate/donate-bitcoin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions old/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

$apt = <<SCRIPT
export DEBIAN_FRONTEND=noninteractive

# refresh
apt-get update -y

# essentials
apt-get install -y tmux git wget build-essential vim

# requirements.txt deps
apt-get install -y libcurl4-openssl-dev python3-dev libssl-dev # pycurl
apt-get install -y ldap-utils # ldapsearch
apt-get install -y libmariadbclient-dev # mysqlclient-python
apt-get install -y libpq-dev # psycopg2
apt-get install -y ike-scan unzip default-jdk
apt-get install -y libsqlite3-dev libsqlcipher-dev # pysqlcipher

# 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
rm -fr /tmp/FreeRDP
git clone https://github.com/FreeRDP/FreeRDP/ /tmp/FreeRDP && (cd /tmp/FreeRDP && cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON . && cmake --build . && sudo cmake --build . --target install)

SCRIPT

$patator = <<SCRIPT
python3 -m venv patatorenv --without-pip
source patatorenv/bin/activate
wget --quiet -O - https://bootstrap.pypa.io/get-pip.py | python3
python3 -m pip install patator

SCRIPT

Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.box_check_update = false

# prevent TTY error messages
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"

config.vm.provision "shell",
inline: $apt,
preserve_order: true,
privileged: true

config.vm.provision "shell",
inline: $patator,
preserve_order: true,
privileged: false
end
Loading
0