This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
userrecon | |
TheFatRat | |
Metasploit-framework | |
tweets_analyzer | |
backdoor-factory | |
fish | |
figlet | |
leafpad | |
net-tools | |
network-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Se connecter a la database de metasploit: | |
> systemctl start postgresql | |
> msfdb init | |
Entrer dans le Path 'Creating configuration file' | |
> cd <Path> | |
> cat database.yml | |
> cp database.yml /root/.msf4/ | |
> cd ~/.msf4/ | |
> ls (voir database.yml dans /.msf4/) | |
>> IMPORTANT : apt-get update | apt-get upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------Chapite 1 Partie 1------------------------------------------------------------- | |
Reseaux = Groupe d'entitée en communication (echange d'information) | |
2 type de réseaux =-Réseau Internet = reseaux permettant la communication entre différents ordinateur connecter a internet | |
-Réseau Telecom = reseaux permettant la cimmunicatin a distance par transmission d'information simples (voix, texte...) | |
internet = enssembles des noeud (connexion, cables ..) permettan l'acces au Web (WWW) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------------------------------- | |
RHOSTS | RPORT = Target IP | Target PORT | |
LHOSTS | LPORT = Your LOCAL IP | Your LOCAL PORT | |
-------------------------------------------------------------------------------------------------------- | |
fdisk -l = afficher les peripheriques connecter | |
umount /dev/sdb1 = ejecter le periphérique sdb1 | |
-------------------------------------------------------------------------------------------------------- | |
Voir sont IP public : wget -qO - icanhazip.com | |
-------------------------------------------------------------------------------------------------------- | |
VIM = comme nano (editeur de text terminal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L -o rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt | |
#telecharger un dico | |
airmon-ng start wlp0s20f3 | |
#mettre en monitor mode | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
from math import sqrt | |
import matplotlib.pyplot as plt | |
from random import randint | |
import smtplib | |
import os | |
import subprocess | |
###################################################################################################################### | |
############################################ Fonction File management ################################################ | |
###################################################################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pyinstaller | |
shift+rightclick sur le fchier.py (= ou ouvrir dans le terminal) | |
pyinstaller fichier.py | |
pyinstaller -w fichier.py (=cacher console au lancement) | |
-F (= un executable seulement) | |
-i C:\user...\image.ico (= mettre une icon au exe) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
#from random import randint | |
#import os | |
#from objet_test_2 import player #importe du fichier objet_test_2 l'objet/class "player" | |
""" | |
player1 = player("michel", 25, 100) #mettre le player1 en self == adapter les fonction pur ce player | |
player2 = player("jean", 50, 50) | |
print("voici", player1.get_pseudo(),"et il a", player1.get_life(),"points de vie !") | |
print("voici", player2.get_pseudo(),"et il a", player2.get_life(),"points de vie !") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------- | |
crée un user: | |
sudo useradd <USER> --password <PASS> | |
---- | |
pour definir son mdp apres: | |
passwd <USER> | |
---- | |
delete un user: | |
sudo userdel <USERS> | |
add => <-r> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------SETUP------------------------------------------------- | |
sudo apt install apache2 | |
cd /etc/apache2 | |
Check if exist | |
cd /var/www/html | |
sudo service apache2 start | |
cd /etc/apache2/ | |
if error sudo nano envvars | |
and put """ |
OlderNewer