brew update
xcode-select --install
brew tap shivammathur/php
| context.xml | |
| --- | |
| <Context antiResourceLocking="true" privileged="true" > | |
| <Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/> | |
| <Realm className="org.apache.catalina.realm.CombinedRealm"> | |
| <Realm className="org.apache.catalina.realm.LockOutRealm" | |
| failureCount="50" lockOutTime="1" > | |
| <Realm className="org.apache.catalina.realm.UserDatabaseRealm" | |
| resourceName="UserDatabase"/> | |
| </Realm> |
| Setup RDP in mac | |
| 1. install macport https://www.macports.org/install.php | |
| 2. sudo port install rdesktop | |
| 3. install xquartz from this https://www.xquartz.org | |
| 4. export DISPLAY=:0 | |
| 5. open -a XQuartz | |
| 6. echo $DISPLAY | output will: /private/tmp/com.apple.launchd.dqt8pNIhty/org.xquartz:0 | |
| 7. rdesktop -u Administrator -p XXXX 192.168.1.194:1490 |
| /opt/homebrew/Cellar/john-jumbo/1.9.0/share/john/ | |
| $ brew install john-jumbo | |
| $ export PATH=$PATH:/usr/local/share/john | |
| $ zip2john YOUR_FILE.ZIP > zip_hash.txt | |
| $ john --format=PKZIP --wordlist YOUR_WORDLIST_HERE zip_hash.txt | |
| $ john --show zip_hash.txt |
| import os, imghdr, uuid | |
| from flask import Flask, request, send_from_directory | |
| from werkzeug.utils import secure_filename | |
| app = Flask(__name__) | |
| UPLOAD_FOLDER = 'uploads' | |
| app.config['UPLOAD_EXTENSIONS'] = ['.jpg', '.png', '.gif'] | |
| app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER | |
| app.config['MAX_CONTENT_LENGTH'] = 1 * 1024 * 1024 #max 1 mb |
| /.git/config | |
| /wp-admin/js/widgets/index.php | |
| /wp-content/uploads/2020/10/casper_speed.php | |
| /wp-logout.php | |
| /gk.php | |
| /wp-content/0day.php | |
| /autoload_sitemap.php | |
| /comment.php | |
| /wp-content/uploads/archieving.php | |
| /js/logs.php |
| // secure code for middleware | |
| example : | |
| ``` | |
| // only POST method can be overridden | |
| e.Pre(middleware.MethodOverride()) | |
| // protect from xss | |
| e.Use(middleware.SecureWithConfig(middleware.SecureConfig{ | |
| XSSProtection: "1; mode=block", | |
| ContentTypeNosniff: "nosniff", |
| CSS Syntax | |
| ---------------------------------------- | |
| Css is for styling the HTML page, it's not a programing language | |
| basicly it's only like this: | |
| selector { | |
| property1 : value; | |
| property2 : value; | |
| } |
| sudo apt update | |
| sudo apt -y upgrade | |
| sudo apt-get -y install python3-pip python3-dev build-essential libssl-dev libffi-dev xvfb | |
| pip3 install selenium | |
| wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz | |
| tar -xvzf geckodriver* | |
| mv -v geckodriver /usr/local/bin | |
| cd /usr/local/bin | |
| chmod +x geckodriver | |
| #checking geckodriver only execute like this: ./geckodriver |