3 liens privés
Maquettage de site web
Java memory dump on outofmemory
-XX:+PrintGCDateStamps
-verbose:gc
-XX:+PrintGCDetails
-Xloggc:"<path to log>"
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=<path to dump>`date`.hprof
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCDetails
-XX:+PrintSafepointStatistics
-XX:PrintSafepointStatisticsCount=1
-XX:+SafepointTimeout
-XX:SafepointTimeoutDelay=<ms before timeout log is printed>
Pense-bête
psql -p 5555 -h 10.0.10.2 -U <user> -d <database
Create user
create database mydb;
create user myuser with encrypted password 'mypass';
grant all privileges on database mydb to myuser;
List databases
\list or \l : list all databases
\c dbname or connect dbname : connect to database
\dt : list all tables in the current database
\d+ <table> : describe table
Size of database
SELECT pg_size_pretty(pg_database_size('db'));
Pense-bête
mysql -u username -p database_name < file.sql
Tutoriel complet pour réparer le boot windows.
Un bon résumé
"too many open files"
Parce que ulimit et /etc/security/limits.conf ne fonctionne pas avec systemd :
[Service]
Type=simple
User=farmer
....
LimitNOFILE=500000:500000
LimitNPROC=500000:500000
Sans oublier :
systemctl daemon-reload
J'utilisais des outils web, mais ça c'est pas mal aussi...
Pour linux :
https://emage.js.org/
https://www.xnview.com/fr/xnconvert/
Problème de boot UEFI :
diskpart
list disk
list volumes
sel disk 1
list partitions
sel volume X
assign letter=C
remove letter=D
bcdboot c:\Windows /l fr-fr /s r: /f UEFI
Et aussi :
https://www.diskpart.com/fr/articles/erreur-boot-bcd-windows.html
Parce que je m'y perds...
A script that checklist actions for privilege escalation from
https://book.hacktricks.xyz/linux-unix/linux-privilege-escalation-checklist
And follow by :
https://github.com/mzet-/linux-exploit-suggester
And again :
Hostname from local ip
sudo apt-get install nbtscan
nbtscan <ip>
Des icônes
J'aime bien cette "mise à jour involontaire" :
https://investir-sur-internet.com/comment-acheter-des-actions-en-ligne/action-orange/
Regardez bien les petites images :)
"75% des comptes d'investisseurs de détails perdent ..." juste en dessous de "Le meilleur coutier est .... bla bla bla"
Ah ah. C'est illégal, attention ! ...
List of word, passwords...
Rockyou is long
hydra -l root -P /usr/share/wordlists/rockyou.txt 192.168.1.105 -t 4 ssh
Hydra also accepts wordlists for users and targets. They can be specified with the -L flag for users, and the -M flag for IPs.
With list of user :
hydra -L /usr/share/wordlists.rockyou.txt -P /usr/share/wordlists/rockyou.txt -M Documents/ip.txt -t 4 ssh
Checklist lorsqu'un nouveau pc ne démarre pas.
Not enough space on disk /tmp but still available space : inodes may be full :
df --inodes
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
Java options precedence
java -Xmx1G -XX:+PrintFlagsFinal -Xmx2G 2>/dev/null | grep MaxHeapSize
... ça me donne envie d'essayer !!
Minecraft/Minetest à la maison !
Execute mongo command in bash (mongo-client package must be installed)
echo "db.reports.drop();" | mongo -u <username> -p <passwors> <mydatabase> --authenticationDatabase admin