Nym0x
Wiki
  • Méthodologies
    • Tests d'intrusion internes
    • Tests d'intrusion web
    • Audit sur le Wi-Fi
  • Techniques diverses
    • Stabiliser un shell
    • Pivoting 🚧
    • Transfert de fichiers 🚧
    • Password Cracking
  • Services réseaux
    • TCP/21 - FTP 🚧
    • TCP/22 - SSH 🚧
    • TCP/23 - Telnet 🚧
    • TCP/25 - SMTP 🚧
  • Windows
    • Extraction de secrets locaux 🚧
    • Relais NTLM 🚧
    • Active Directory
      • ADIDNS Poisoning
      • AS-REP Roasting
      • Authentification Kerberos
      • Délégation Kerberos
      • Kerberoast
      • NoPAC
      • Shadow Credentials 🚧
      • ADCS
        • Certifried
  • Linux
    • Privesc
  • Web
    • Injections SQL 🚧
    • Injections XSS 🚧
    • Injections XXE 🚧
    • Json Web Token 🚧
    • Path Traversal
    • Réinitialisation de mots de passe
    • Same Origin Policy 🚧
  • Wi-Fi
    • Lexique
    • WEP
    • WPA
  • C#
    • Types de données & Variables
    • Collections
    • Opérateurs
    • Conditions
    • Boucles
    • Classes
    • Gestion des erreurs
    • Concurrence
    • Platform Invoke
  • OSINT
    • Example Guide
Nym0x
  • Wiki
  • A propos
  • HackTheBox
  • RootMe

Search

Loading search index…

No recent searches

No results for "Query here"

  • to select
  • to navigate
  • to close

Search by FlexSearch

  • Méthodologies
    • Tests d'intrusion internes
    • Tests d'intrusion web
    • Audit sur le Wi-Fi
  • Techniques diverses
    • Stabiliser un shell
    • Pivoting 🚧
    • Transfert de fichiers 🚧
    • Password Cracking
  • Services réseaux
    • TCP/21 - FTP 🚧
    • TCP/22 - SSH 🚧
    • TCP/23 - Telnet 🚧
    • TCP/25 - SMTP 🚧
  • Windows
    • Extraction de secrets locaux 🚧
    • Relais NTLM 🚧
    • Active Directory
      • ADIDNS Poisoning
      • AS-REP Roasting
      • Authentification Kerberos
      • Délégation Kerberos
      • Kerberoast
      • NoPAC
      • Shadow Credentials 🚧
      • ADCS
        • Certifried
  • Linux
    • Privesc
  • Web
    • Injections SQL 🚧
    • Injections XSS 🚧
    • Injections XXE 🚧
    • Json Web Token 🚧
    • Path Traversal
    • Réinitialisation de mots de passe
    • Same Origin Policy 🚧
  • Wi-Fi
    • Lexique
    • WEP
    • WPA
  • C#
    • Types de données & Variables
    • Collections
    • Opérateurs
    • Conditions
    • Boucles
    • Classes
    • Gestion des erreurs
    • Concurrence
    • Platform Invoke
  • OSINT
    • Example Guide

Table des matières

  • Dans un environnement UNIX

Stabiliser un shell

On this page
  • Dans un environnement UNIX

Dans un environnement UNIX#

Dans un premier temps, vérifier si python est présent sur le système ainsi que sa version.

python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'

Configurer le STTY :

stty raw -echo

Enfin, exporter les bonnes variables d’environnement :

export SHELL=BASH
export TERM=xterm
    • Site créé avec amour et beaucoup de café ☕