## docker-compose para correr wordpress con una base de datos en mysql | |
## by PeladoNerd https://youtu.be/eoFxMaeB9H4 | |
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress:php7.1-apache | |
ports: |
Cheatsheet for HackTheBox with common things to do while solving these CTF challenges.
Because a smart man once said:
Never google twice.
========================================================================================================== | |
# 8. VBoxManage | |
https://www.virtualbox.org/manual/ | |
========================================================================================================== | |
# Networking Modes | |
https://www.virtualbox.org/manual/ch06.html#network_bridged | |
========================================================================================================== | |
Windows Host | |
>vboxmanage --version |
--max-count=number of matches before stopping search
--exclude=*.txt with -r option
Note: Lookahead and lookbehind are Perl-style regular expression elements, so you'd have to use Perl directly, or GNU grep with the -P option, which then interprets Perl regex.
grep -o pattern file.txt **shows only the matched string**
grep -bn pattern file.txt **shows row and col**
grep -v pattern file.txt **inversion**
Ref : stackoverflow
The best solution in my opinion is to use the unittest
[command line interface][1] which will add the directory to the sys.path
so you don't have to (done in the TestLoader
class).
For example for a directory structure like this:
new_project
├── antigravity.py
Install the dependencies for the archiso
package:
(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git
I recommend archiso
getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below.
So, grab the most recent version from git and install it:
(user): git clone git://projects.archlinux.org/archiso.git && cd archiso
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
## | |
## Slightly nicer .bashrc | |
## Makes pretty colors and stuff | |
## | |
## Set $PATH, which tells the computer where to search for commands | |
export PATH="$PATH:/usr/sbin:/sbin:/bin:/usr/bin:/etc:/usr/ucb:/usr/local/bin:/usr/local/local_dfs/bin:/usr/bin/X11:/usr/local/sas" | |
## Where to search for manual pages | |
export MANPATH="/usr/share/man:/usr/local/man:/usr/local/local_dfs/man" |