Git Product home page Git Product logo

tryhackme-koth's Introduction

Simple Tricks I use While Playing King Of The Hill

Hey guys, hope you're doing well :)

For those who are playing TryHackMe king of the hill...

These are some tips/tricks I usually do

First thing I do when I get into the machine is deleting ssh keys and put mine

To generate id_rsa & id_rsa.pub you could use ssh-keygen

Then, enter the machine using ssh -i id_rsa remote_username@remote_host

using this simple trick only you can enter the machine using ssh...

To automate putting ur username inside king.txt and make sure that there's no username except yours,u can create a simple script to do that

#!/bin/bash
while :
do
        eval "echo [usernameHere] >> /root/king.txt"
        eval " > /root/king.txt"
done

#this script is created in 1 min :P

or by simpler way

while [[ $(cat /root/king.txt) != "[usernameHere]" ]]; do echo "[usernamehere]" >> /root/king.txt; done

#this script is created in less than minute :P

also u can add your username automatically by putting inside /etc/crontab

* * * * * echo "[usernameHere]" >> /root/king.txt >/dev/null 2>&1

#SimpleButEffective #staySafe

tryhackme-koth's People

Contributors

najeh-halawani 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.