mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-14 17:07:34 +00:00
GitBook: [master] 380 pages modified
This commit is contained in:
parent
229d75d9f7
commit
98f9ede180
3 changed files with 18 additions and 0 deletions
|
@ -340,6 +340,14 @@ for i in $(seq 1 610); do ps -e --format cmd >> /tmp/monprocs.tmp; sleep 0.1; do
|
|||
|
||||
**You can also use** [**pspy**](https://github.com/DominicBreuker/pspy/releases) \(this will monitor and list every process that start\).
|
||||
|
||||
### Invisible cron jobs
|
||||
|
||||
It's possible to create a cronjob **putting a carriage return after a comment** \(without new line character\), and the cron job will work. Example \(note the carriege return char\):
|
||||
|
||||
```bash
|
||||
#This is a comment inside a cron config file\r* * * * * echo "Surprise!"
|
||||
```
|
||||
|
||||
## Services
|
||||
|
||||
### Writable _.service_ files
|
||||
|
|
|
@ -37,6 +37,15 @@ sudo apt-get install php-memcached
|
|||
php -r '$c = new Memcached(); $c->addServer("localhost", 11211); var_dump( $c->getAllKeys() );'
|
||||
```
|
||||
|
||||
### Manual2
|
||||
|
||||
```bash
|
||||
sudo apt install libmemcached-tools
|
||||
memcstat --servers=127.0.0.1 #Get stats
|
||||
memcdump --servers=127.0.0.1 #Get all items
|
||||
memccat --servers=127.0.0.1 <item1> <item2> <item3> #Get info inside the item(s)
|
||||
```
|
||||
|
||||
### Automatic
|
||||
|
||||
```bash
|
||||
|
|
|
@ -368,4 +368,5 @@ ping 1.1.1.100 #After a successful connection, the victim will be in the 1.1.1.1
|
|||
|
||||
* [https://github.com/securesocketfunneling/ssf](https://github.com/securesocketfunneling/ssf)
|
||||
* [https://github.com/z3APA3A/3proxy](https://github.com/z3APA3A/3proxy)
|
||||
* [https://github.com/jpillora/chisel](https://github.com/jpillora/chisel)
|
||||
|
||||
|
|
Loading…
Reference in a new issue