2017-01-12 4 views

Antwort

2

FB CTF in einer Open-Source-Hackathon-Leit-Plattform, die speziell für Ubuntu v14.04LTE VERTRAUEN in hacklang codiert ist (Sprache abgeleitet von PHP, eigentlich nicht PHP). Es selbst erstellt die erforderliche Umgebung.

Download FBCTF from www.github.com/facebook.com/fbctf und in Home-Ordner als /home/<username>/fbctf/

Der gesamte Code des Projekts extrahiert gibt es auf /fbctf/src/

Zeilennr 49-59 :: Datei /fbctf/extra/provision.sh

MODE="dev"       # dev/prod ///PREFERRABLY PROD 
NOREPOMODE=false  
TYPE="self"       # CTF ITSELF PRODUCE ITS CERTIFICATE 
KEYFILE="none" 
CERTFILE="none" 
DOMAIN="localhost"     # DOMAIN YOU ARE GOING TO INSTALL 
EMAIL="none" 
CODE_PATH="/home/<username>/fbctf" # by default `/vagrant` change it to where the downloaded code is present  
CTF_PATH="/var/www/fbctf"    # by default it is /var/www/ change it if u need to install to some other destination. (Make sure that this path is access able to nginx and hhvm) 
HHVM_CONFIG_PATH="/etc/hhvm/server.ini" 

dies, indem getan werden kann, Parameter zu Datei. ----------------------------------------------------------------------------

ON COMMAND PROMPT:

cd fbctf 
./extra/provision.sh prod `pwd` 

es beginnt Software ihrer eigenen Installation. einschließlich

[+] GIT

[+] ROTATION

[+] English Language Pack

[+] Python Setup-Tools

[+] Memcached

[+] mysql

[+] php5

[+] HHVM (Virtual Machine HACKLANG zu VERARBEITEN)

[+] PHP KOMPONIST

[+] NPM (NODE JS Package Manager)

(PHP Dependancy DATA LÖSEN) [ +] NodeJS-Legasy

[+] RUN GRUNZEN

[+] NGINX (Load Balancer)

[+] UNISON (wenn nicht in Vagabunden aufgestellt; Sie können dies mit # kommentieren; #install_unison wird verwendet, um Landstreicher- und Host-Daten live zu synchronisieren.

[+] DATENBANK BEREIT.

Möglicherweise, wenn es keine errore ist und alle Sync sind perfekt eingerichtet, dann arbeiten auf localhost

mögliche Fehler berücksichtigt.

Normalerweise gehen NGinx UND APACHE FÜR PORT 80 (OHNE HTTPS; DAS IST 443) UND COLASHING OCCOURS. ändern, so APACHE PORT 80 zu einigen anderen WIE 8080 UND FAHREN dowm APACHE

sudo service apache2 stop [OK]

sudo service nginx restart [OK]

Verwandte Themen