How Hackers Could Brute-Force SSH Credentials to Gain Access to Servers

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 196

  • @Aleksandar0100
    @Aleksandar0100 4 роки тому +129

    Finally, my boy is back.

  • @j_owatson
    @j_owatson 4 роки тому +33

    He blinks, you just blink at the same time as him.

    • @natediaz7447
      @natediaz7447 4 роки тому

      brilliant

    • @k.3004
      @k.3004 4 роки тому

      I blink often but I stared long enough to see him blink 😂

  • @realm2090
    @realm2090 4 роки тому +57

    Why's the account that you're on your laptop called "boob" lol.

    • @user-vn7ce5ig1z
      @user-vn7ce5ig1z 4 роки тому +22

      Because boobs are great? 🤷

    • @HMUP7
      @HMUP7 4 роки тому +1

      @@user-vn7ce5ig1z can't argue with that

    • @yuh6038
      @yuh6038 4 роки тому +2

      Because he’s the 🐐

    • @leakthis7218
      @leakthis7218 4 роки тому +2

      boob

    • @KnotAcceptableVids
      @KnotAcceptableVids 4 роки тому

      because maturity, that's why. right?

  • @pianochannel100
    @pianochannel100 4 роки тому +4

    This man has optimized his life down to the intervals in which he blinks.

  • @Akilasgood
    @Akilasgood 4 роки тому +1

    I was expecting for this video for quite long time.... 🙏🏻

    • @uniquechannelnames
      @uniquechannelnames 4 роки тому +1

      I was expecting *this video for quite *a long time.
      Just a correction in case you're learning English as a second language.

  • @UNGETABLE7
    @UNGETABLE7 4 роки тому

    Glad to see you’re back again mate.

  • @brendanwebb5489
    @brendanwebb5489 4 роки тому

    Thank you, this really helped me understand ssh servers and how they work, I’ve been having trouble understanding it for a while and this really helped me out

  • @sefo31337
    @sefo31337 4 роки тому

    Finaly the creator of the best channel on yt is back

  • @mathiasskukker5948
    @mathiasskukker5948 4 роки тому +5

    You're the best teacher I've had. respect for your work.

  • @enos5192
    @enos5192 4 роки тому

    Kody my Dudy is Back on track... luv U man

  • @thegamerguy56
    @thegamerguy56 4 роки тому +3

    Not planning on hacking any SSH, just looking to see what Im up against as a server operator. Don't know why though. I already use public keys with password and root auth disabled, custom port, and fail2ban.

  • @brijesh1809
    @brijesh1809 4 роки тому +1

    Great videos, keep it going null byte

  • @Rob_III
    @Rob_III 4 роки тому +1

    Any decent SSH install has: 1) Disabled root login, 2) Disabled password login in favor of public key, 3) A method of stopping the 'attack'; usually by blocking the IP for at least 24 hours or something.

    • @Rob_III
      @Rob_III 4 роки тому

      @Losko Meh, that's more a "Security through obscurity" thing. It does next to nothing for a determined "hacker"

    • @Rob_III
      @Rob_III 4 роки тому

      @Losko That's where we disagree: Step #4 doesn't CONSIDERABLY reduce the "impact surface". It MARGINALLY, if at all, reduces the "impact surface". With tools like nmap you can scan all ports in a matter of seconds and if your system is connected to the public internet then tools like Shodan make it so easy even kids can find your "hidden" SSH service. (See security.stackexchange.com/a/189738/3992 )

    • @Sythorize
      @Sythorize 2 роки тому

      any half decent hacker will just use a botnet to bruteforce the credentials so banning IP does nothing really. Especially when someone has hundreds of thousands of telnet devices on their net.

    • @Rob_III
      @Rob_III 2 роки тому +1

      @@Sythorize Ofcourse it does, it limits the number of attempts to X for each and every IP. Yes, your banned IP list will grow big, but it's still better than keep allowing each IP to try again and again and again.

    • @Sythorize
      @Sythorize 2 роки тому

      @@Rob_III yeah but it’s useless

  • @KeithGriffiths
    @KeithGriffiths 3 роки тому

    Your videos are really good. 🐱‍👤

  • @Ultra289
    @Ultra289 Рік тому +1

    postgresql? but does it work with mysql??

  • @socat9311
    @socat9311 4 роки тому +4

    Could you do a video on discovering what file types a server allows? I have done boxes where for example php might not have been allowed but php5 was allowed. So would be useful to have a strategy of checking such things (other than trying multiple versions I guess)

  • @boredguy_0137
    @boredguy_0137 4 роки тому

    Woah! Thanks mate, I've been looking for ssh brute forcing stuff for a long time!

  • @LucasAKempe
    @LucasAKempe 4 роки тому

    Plot twist we all weren't blinking and he was

  • @temisanebireri4294
    @temisanebireri4294 2 роки тому +2

    Thank you for this tutorial. After setting the user file and pass file and attempting to run the command. It brought an error message and I realized I didn't have the user.txt and password.txt files. Please how can I create those files?

  • @Sythorize
    @Sythorize 2 роки тому +1

    Do you think zenmap is a good program? I have found its a lot more useful than doing it all by yourself.

  • @dr.siddharthojha3642
    @dr.siddharthojha3642 4 роки тому

    Wow amazing video sir ♥️♥️

  • @shortsentral
    @shortsentral 4 роки тому

    Please help. I am attempting to get in to mobile pen testing too. I am planning on getting a OnePlus 8. But I have no idea if it can be put in to Promiscuous/Monitor mode when I run Kali Linux on it.
    If it can’t, is there any other decent phone that can? Thank you in advance

  • @TheRealZamFit
    @TheRealZamFit 4 роки тому +4

    The moral of the story: SSH is f***ing hard to hack. Especially if you do not use a default username.

    • @uniquechannelnames
      @uniquechannelnames 4 роки тому

      Does using an SSH .rsa key instead of a password make it harder or easier? If you gained like a meterpreter shell into one computer, couldn't you theoretically just find the .rsa SSH credentials?

    • @TheRealZamFit
      @TheRealZamFit 4 роки тому +1

      @@uniquechannelnames Attacking a remote system with passwords can be done by anyone anywhere. To hack a system protected with key based security, you must actually find the private key which is something that even the secured machine will not possess. This means the attacker must first successfully hack the admin’s machine to get the key. This is also why you should protect your private keys with a supplemental security layer. A keychain, password manager, or even simple password can make this impractical for all but the most dedicated hackers.

  • @ganeshshukla584
    @ganeshshukla584 Рік тому

    Thanks for the video man, it was really good. I tried all 3 methods but it doesn't work can you suggest alternate method?

  • @JahMusicTube
    @JahMusicTube 4 роки тому +11

    Another easy way to protect against this, besides using public keys, is to block IPs after a set number of failed ssh logins in your firewall config.

    • @jonathanjohn9643
      @jonathanjohn9643 Рік тому

      what if they use vpn?

    • @pie5233
      @pie5233 Рік тому +1

      you can easily allow to access only in a range of ip addresses

    • @GustavAgar
      @GustavAgar 11 місяців тому

      @@pie5233 i do that, only allow ssh connection from the ip that i usually connect

  • @pebrialkautsar8692
    @pebrialkautsar8692 4 роки тому

    Hello I have a question. How can weh port forwarding but keep the original ip address? I tried using iptables (DNA, SNAT) but it was translating the ip address. Helppp :'(

  • @chiragramoliya2580
    @chiragramoliya2580 4 роки тому

    Hey bro...
    I have questions about brute force attacked stopped after some password check?

  • @Finabaolah
    @Finabaolah 9 місяців тому

    Please can i get help on SSH scanner on port 1222? I am a novice, i will appreciate any guide to getting the program and using it.

  • @mrunplugged5080
    @mrunplugged5080 4 роки тому +2

    Cant, you just determine the range of the subnet by looking at the subnet mask?

  • @lyonfiurextechsupport3133
    @lyonfiurextechsupport3133 3 роки тому

    Dude. Where you can find the (userdb) to create the files and the (passdb)?

  • @survivalextreme8270
    @survivalextreme8270 4 роки тому

    Tried to ssh the router, but it says port 22 refused .. Tried telnet aswell but port 23 refused .. What can i do about this ?? Connect bot is not working ..

  • @user-vn7ce5ig1z
    @user-vn7ce5ig1z 4 роки тому +2

    Great, so how do we defend against this aside from using a stronger [*nix account] password? Is there a way to time-throttle login attempts? The *MaxAuthTries* and ** settings are barely a minor speedbump for a script and *LoginGraceTime* setting won't help at all (it's essentially useless ¬_¬). A quick search seems to indicate that you'll have to use iptables to set up a time limit. Why isn't there a built-in option in sshd? 😕

    • @dingokidneys
      @dingokidneys 4 роки тому +2

      To defend against this, as Kody said, you can use an obscure username (disable root/admin ssh logins), use a different port and use a strong password or - even better - use a private key. You can also set fire wall rules that either limit how many login attempts are allowed per minute or deny access to the source IP after a certain number of failed attempts within a time period.
      On my box, I only allow ssh access for a named user using a private key and that's successfully defended me for years. Recently I added a firewall rule (3 lines actually) to boot people after 4 failed attempts within a minute 'cause my logs were filling up with failed login attempts.

    • @lmaoroflcopter
      @lmaoroflcopter 4 роки тому +2

      Commercially: Certificate based auth, but that requires you to set up a PKI infrastructure which is a bit beyond the personal use so...
      Personally: switch to Public Key auth, disable root login, use ip tables to limit connections, install and configure 2fa (Google authenticator is free).
      You can still brute force public keys (if you have a collection of them - say HDMoore's collection of Debian weak prng generated keys) using something like crowbar but it's not likely that your key generated by a modern operating system is going to be in that collection.
      Password auth itself needs to die in a fire.

    • @christopherirving7685
      @christopherirving7685 4 роки тому +1

      @@lmaoroflcopter agreed but without Google if you change phone or worst lose it, your screwed. Lost access to several places for a few days. Cloud based authentication is the way to go imo

    • @lmaoroflcopter
      @lmaoroflcopter 4 роки тому +1

      @@christopherirving7685 that's why you back up your backup codes to something that isn't your phone, and Google Auth, is just an open source implementation of TOTP. Use a yubikey to store the seed and it isn't even linked to a phone. You've also almost always got some access via a providers ILO or serial console system, or in the case of home hosted - physical access to the device, too in order to recover from.any derps.
      But cloud based Auth is interesting, though I'd argue that's a bit beyond the individual and more a corporate solution, but along the same lines Netflix also publish their own solution for certificate based auth, that runs in aws lambda.

    • @christopherirving7685
      @christopherirving7685 4 роки тому +1

      @@lmaoroflcopter I backed up to something that was stolen I'm just pointing out a flaw many don't take into account. Lost access to coinbase and wallets. But yes I now backup to more than one location :) thanks for the comment

  • @jasjotsingh9879
    @jasjotsingh9879 3 роки тому

    where do these users.txt and passwords.txt files need to be saved. Which directory

  • @knighttemplars259
    @knighttemplars259 4 роки тому

    Who is best for offline attacks, hydra, john or hashcat? Maybe something else? What about online attacks, hydra?

  • @salsaamaliaputri-saphire-u7764
    @salsaamaliaputri-saphire-u7764 11 місяців тому

    is it possible to brute force my server from other network and region?

  • @TarunKumar-de1ej
    @TarunKumar-de1ej 3 роки тому

    what if ssh is configured on different ports then how I can use hydra for attacking ssh

  • @hanselchristopher534
    @hanselchristopher534 4 роки тому

    Basically this all methods will work when there's a system connected to your network right or same network?

    • @realitycheck_
      @realitycheck_ 4 роки тому

      I think that as long as you have the IP of the target. You have their IP, you scan for open port 22 and just brute force it. Give me your IP and I will try if it works lol

  • @ravagex2179
    @ravagex2179 4 роки тому

    Hey, I just wanted to ask. What is the best WiFi adapter that support monitor mode and packet injection, which works with Kali Linux?

    • @dumbneek6237
      @dumbneek6237 4 роки тому

      i personally use this one: Alfa AWUS036ACH

    • @Nitidus
      @Nitidus 4 роки тому

      The actual aircrack-ng FAQ suggests the following - please keep in mind that the model suggested by the comment above might crash your kernel!
      • Alfa AWUS036ACH (a/b/g/n/ac) is the best performing card, but the driver can be unstable enough to crash your kernel.
      • Alfa AWUS036ACM (a/b/g/n/ac) is the highest performing of the STABLE devices, but it requires kernel 4.19.5 or higher, and the driver doesn't work on the Raspberry Pi 3 yet; it works on the Raspberry Pi 4.

  • @bertil0424
    @bertil0424 4 роки тому

    Will work on a Mac?

  • @TheExsi
    @TheExsi 4 роки тому +2

    Damn. I love his stickers!

  • @yousufkhan6654
    @yousufkhan6654 4 роки тому

    I think tps is trial per second. Anyways, good to see you sir.

  • @DiNaMiCNitro
    @DiNaMiCNitro 4 роки тому

    Excellent video!! What's the background music? Greetings.

  • @boondocks8091
    @boondocks8091 4 роки тому

    How do I change my wifi icon on the top panel to make it like yours?

    • @abbasfaizy4769
      @abbasfaizy4769 4 роки тому +1

      You can't. Coz you use Windows and he uses Linux! Lol

  • @bensomeah6337
    @bensomeah6337 2 роки тому

    what if you have a confirmed working pair of credentials?

  • @TheJoker-ql1xp
    @TheJoker-ql1xp 4 роки тому +6

    Me: *Running a Minecraft server* wait what?

    • @godfather7339
      @godfather7339 3 роки тому

      can you ssh into a Minecraft server? would people keep a ssh port open?

  • @sigill_fx1
    @sigill_fx1 Рік тому

    Great Vídeo man! Thanks.

  • @moligoli3628
    @moligoli3628 3 роки тому

    Great sir amazing yesterday only I found your chennal and website
    I trying to learn basics in this field I watched your 3-4 videos yesterday and visit at website also amazing contents very helpful .
    Follower from India 🇮🇳

  • @venuvohra94
    @venuvohra94 4 роки тому

    Can I get something related to windows, or if not can you recommend anyone just like you pleaseee

  • @RobinCawthorne
    @RobinCawthorne 4 роки тому

    Would this still work if the server had fail2ban configured?

    • @misfitsman805
      @misfitsman805 4 роки тому +1

      It shouldn't. iptables should kick in and make the attacking computer think that the server is now offline and wont respond to pings. But I could be wrong. I run fail2ban on all my servers though! Currently at 37678 Blocked IP addresses :D

    • @RobinCawthorne
      @RobinCawthorne 4 роки тому

      @@misfitsman805 hectic!
      Would be cool to build a dmz in front and drop a honeypot in there. See what these bots/peeps are up to. I also block with fail2ban but have a static IP at home so could just whitelist. Instead though, there's this port knocking tool, can't recall the name but it works like a dream.

  • @zpelleti
    @zpelleti 3 роки тому

    I keep getting 'cred can't be blank', can anyone tell me why?

  • @mitujangra4908
    @mitujangra4908 4 роки тому +1

    Bro please make a video on how to access the database of an android apps??

    • @NullByteWHT
      @NullByteWHT  4 роки тому +1

      Good idea Mitu Jangra, I've added it to the list of video ideas.

  • @t.designer5540
    @t.designer5540 4 роки тому

    Null byte help me. I m learnin from live kali linux on laptop. When i try hacking wifi my wifi will be disconnected. My linux not scan wifi. If i click restart button it will be fine. I dont know what would i do. If wifi working but not scaning any targets. Help me. I am from Uzbekistan. I don't know English very well. Sorry if have any mistake in my letter.

    • @l0_0l45
      @l0_0l45 4 роки тому

      Network services are disabled by default in Kali. To enable them, try "sudo systemctl network.service start". It is disabled by default as a computer looking for a wifi is exposed, so it gives out its location. Also you may need a wifi dongle if your laptop does not support it. Hope this helps.
      (P.S. Don't do anything *illegal or criminal,* and if you are scanning ports, use proxychains to hide your ip and prevent dns leaks.)

    • @t.designer5540
      @t.designer5540 4 роки тому

      @@l0_0l45 thank you friend

  • @thelitbroz1615
    @thelitbroz1615 3 роки тому

    why isnt my ssh connecting to the host

  • @cvegas7823
    @cvegas7823 4 роки тому

    How can I use Linux or termux to bypass the pattern lock screen of android devices?

    • @l0_0l45
      @l0_0l45 4 роки тому

      I don't think termux can do any of it, considering the fact that termux does not support rooting.

  • @chiranjeevinaidu3660
    @chiranjeevinaidu3660 3 роки тому

    Bro is there a way to bruteforce ssh passwords like how we bruteforce wifi

  • @Tinygirl92009
    @Tinygirl92009 2 роки тому

    It said ssh could not be reached :(

  • @danielolortegui8422
    @danielolortegui8422 3 роки тому

    Anyone with that many stickers on their laptop has got to be evil

  • @shahinmadani184
    @shahinmadani184 3 роки тому

    could please show us how the metasploit session can be exploited ?in a video please!

  • @elieellouk8454
    @elieellouk8454 4 роки тому

    You have to make a video on hacking a electric scooter via Bluetooth packets !!

  • @legochewbacca2214
    @legochewbacca2214 4 роки тому

    yay kody is back

  • @ahmedakikazim7865
    @ahmedakikazim7865 3 роки тому

    Please is there any exploitation?

  • @PashaDefragzor
    @PashaDefragzor 4 роки тому

    Nobody hacking like that anymore, they just looking for a cable and then get into the room

  • @mercenary8360
    @mercenary8360 4 роки тому

    Do you hack a online games

  • @spacedoutmercy9741
    @spacedoutmercy9741 4 роки тому

    Is the wifi network's name boob.? 😅

  • @mujeebishola7778
    @mujeebishola7778 4 роки тому

    Hi bro please I want to start and learn hacker please help

  • @vsivakrishna9647
    @vsivakrishna9647 4 роки тому

    Did you notice the wifi name is boob😂

  • @Fvoiys
    @Fvoiys 2 роки тому

    Let's not talk about the wifi's name 💀

  • @MH-tw1qi
    @MH-tw1qi 4 роки тому

    Welcome back

  • @oussamaouerfelli2234
    @oussamaouerfelli2234 4 роки тому

    @Null BYte please a tutorial of formjacking injecting script and give us the script thanks

  • @communist_demon4177
    @communist_demon4177 4 роки тому +1

    Yey he is back

  • @patrickren7395
    @patrickren7395 4 роки тому

    cat /var/log/auth.log | grep Failed | wc -l
    if the number is more than 2 digits, you should probably pay attention. Change ssh port to at least 4 digits and turn off root user login

  • @NijatZadeh
    @NijatZadeh Рік тому

    How can I move files from the target machine to my own machine?

  • @deanlhouston
    @deanlhouston 2 роки тому

    Nobody should be using SSH1 nowdays, so not sure how useful it will be trying to hack into SSH systems using v1 when practically nobody is (should be) using it.

  • @Mr.Equinox
    @Mr.Equinox 4 роки тому +3

    17:16 when u r fooled twice 😂
    Read more

  • @HKAcademy1
    @HKAcademy1 3 роки тому

    Nice SSID

  • @tahagaming885
    @tahagaming885 3 роки тому

    Plz help I want to learn hacking.

  • @Elisei36
    @Elisei36 Рік тому

    Nobody talking about his wifi name

  • @amybuciomorton7599
    @amybuciomorton7599 2 роки тому

    SSH could not be reached

  • @danzappleseed6881
    @danzappleseed6881 3 роки тому

    How easy u can see all those passwords.

  • @iluvass2
    @iluvass2 4 роки тому

    very interesting cool content!

  • @Toxichead1989
    @Toxichead1989 4 роки тому

    Hey man im trying to learn python what is the most important things to know? //Batman

  • @abdurrafay7059
    @abdurrafay7059 4 роки тому

    plzzz make more kali linux ethical hacking videos

  • @danzappleseed6881
    @danzappleseed6881 3 роки тому

    When ping all the packets lost'... It goes there's.. !!

  • @THORNORDLAND
    @THORNORDLAND 4 роки тому

    well comeback

  • @kapoork4129
    @kapoork4129 4 роки тому

    Yay kode 🎉

  • @netbin
    @netbin 4 роки тому +1

    Heh finally i can see someone i got used to watch!

  • @Rickety3263
    @Rickety3263 4 роки тому +2

    Cant brute force me. Certificate access only ;-)

    • @dingokidneys
      @dingokidneys 4 роки тому +1

      Same here, but I also tarpitted ssh access 'cause my logs were filling up with scans and hack attempts. Three lines in iptables and my logs are much cleaner.

    • @RakshithPrakash
      @RakshithPrakash 4 роки тому

      @@dingokidneys where can I find the logs on whose trying to loging and scans?

    • @dingokidneys
      @dingokidneys 4 роки тому

      @@RakshithPrakash The Linux logs are either in /var/log or accessible by 'journalctl' if you have a systemd distro.
      To check what's happening on ssh you can do either:
      $ grep sshd /var/log/auth.log
      or
      $ journalctl -u ssh

  • @sayYes2019
    @sayYes2019 4 роки тому

    Love this

  • @lamontwilliams1843
    @lamontwilliams1843 3 роки тому

    Thank you!!!!!!!!!!!!!!!

  • @GKNaidu-hb5zv
    @GKNaidu-hb5zv 3 роки тому

    Are these videos legal bro

  • @dakata2416
    @dakata2416 4 роки тому +2

    Fix your audio for god sake

    • @Rob_III
      @Rob_III 4 роки тому +1

      Came here to say this - it sounds like it's recorded under water with a muffler over the potato microphone.

  • @JarppaGuru
    @JarppaGuru 2 роки тому

    ss-gopy your public key to server and login xD oh wait you need password..but what if...
    you cant brute force if server would my design you get blocked after couple password try LOL
    and shh has open port...

  • @Zknosk
    @Zknosk 4 роки тому

    Heroi back to us, after working for hack5? lol

  • @randomupload6469
    @randomupload6469 4 роки тому

    Ye hes cool
    I want him to be my teacher

  • @extrem2497
    @extrem2497 4 роки тому

    Laptop of Doom

  • @symmetry-e8
    @symmetry-e8 3 роки тому

    Man, never ever show your MAC address.

  • @sidiqbhaseer8536
    @sidiqbhaseer8536 4 роки тому

    Hai sir

  • @abhineetkarn8633
    @abhineetkarn8633 4 роки тому

    Hydra FTW

  • @naami2004
    @naami2004 4 роки тому

    WiFi: boob lol

  • @itsme7570
    @itsme7570 4 роки тому

    Kody, answer my dm bro