This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
swb6-it-sec/Lab02/documentation/shell/shell.tex

21 lines
642 B
TeX
Raw Normal View History

2022-04-28 16:16:52 +02:00
\section{Reverse Shell Exploitation With Netcat}
\subsection{Erster Test}
Zum testen wird das c Programm\footnote{\href{https://www.exploit-db.com/shellcodes/47396}{https://www.exploit-db.com/shellcodes/47396}} kompiliert und ausgeführt.
\begin{lstlisting}[breaklines]
gcc --no-pie -z execstack -fno-stack-protector -D_FORTIFY_SOURCE=0 test-shellcode.c -o shell
./shell
\end{lstlisting}
Nun kann man auf dem Port 43690 eine Verbindung aufbauen.
\begin{figure}[H]
\begin{center}
\includegraphics[width=0.9\textwidth]{shell/01-test}
\caption{Erster Test}
\label{fig:Erster Test}
\end{center}
\end{figure}