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
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)
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.
@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 )
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.
@@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.
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?
@@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.
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.
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 🇮🇳
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
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?
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 :'(
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.
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
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 ..
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? 😕
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.
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.
@@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
@@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.
@@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
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.
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.)
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
@@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.
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.
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
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 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
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...
Finally, my boy is back.
@@rolandgregory7094 🤦♂️ don't be a creeper Roland.
Roland George fuck off roland
@@rolandgregory7094 oof bot
The man that never blinks
He js your girlfriend 😂😂😂
He blinks, you just blink at the same time as him.
brilliant
I blink often but I stared long enough to see him blink 😂
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
Why's the account that you're on your laptop called "boob" lol.
Because boobs are great? 🤷
@@user-vn7ce5ig1z can't argue with that
Because he’s the 🐐
boob
because maturity, that's why. right?
This man has optimized his life down to the intervals in which he blinks.
You're the best teacher I've had. respect for your work.
I was expecting for this video for quite long time.... 🙏🏻
I was expecting *this video for quite *a long time.
Just a correction in case you're learning English as a second language.
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)
Finaly the creator of the best channel on yt is back
Thanks for the video man, it was really good. I tried all 3 methods but it doesn't work can you suggest alternate method?
Glad to see you’re back again mate.
Plot twist we all weren't blinking and he was
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.
@Losko Meh, that's more a "Security through obscurity" thing. It does next to nothing for a determined "hacker"
@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 )
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.
@@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.
@@Rob_III yeah but it’s useless
Do you think zenmap is a good program? I have found its a lot more useful than doing it all by yourself.
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.
what if they use vpn?
you can easily allow to access only in a range of ip addresses
@@pie5233 i do that, only allow ssh connection from the ip that i usually connect
Kody my Dudy is Back on track... luv U man
The moral of the story: SSH is f***ing hard to hack. Especially if you do not use a default username.
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?
@@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.
Damn. I love his stickers!
Welcome back
Great videos, keep it going null byte
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.
That's good enough
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.
Woah! Thanks mate, I've been looking for ssh brute forcing stuff for a long time!
Who is best for offline attacks, hydra, john or hashcat? Maybe something else? What about online attacks, hydra?
I think tps is trial per second. Anyways, good to see you sir.
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 🇮🇳
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
Excellent video!! What's the background music? Greetings.
yay kody is back
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?
did you find the solution ? I have the same problem
Hey bro...
I have questions about brute force attacked stopped after some password check?
Great Vídeo man! Thanks.
Me: *Running a Minecraft server* wait what?
can you ssh into a Minecraft server? would people keep a ssh port open?
Dude. Where you can find the (userdb) to create the files and the (passdb)?
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 :'(
postgresql? but does it work with mysql??
Can I get something related to windows, or if not can you recommend anyone just like you pleaseee
Your videos are really good. 🐱👤
You have to make a video on hacking a electric scooter via Bluetooth packets !!
Hey, I just wanted to ask. What is the best WiFi adapter that support monitor mode and packet injection, which works with Kali Linux?
i personally use this one: Alfa AWUS036ACH
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.
Basically this all methods will work when there's a system connected to your network right or same network?
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
Yey he is back
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 ..
Cant, you just determine the range of the subnet by looking at the subnet mask?
is it possible to brute force my server from other network and region?
Bro please make a video on how to access the database of an android apps??
Good idea Mitu Jangra, I've added it to the list of video ideas.
Wow amazing video sir ♥️♥️
where do these users.txt and passwords.txt files need to be saved. Which directory
Nice SSID
Anyone with that many stickers on their laptop has got to be evil
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? 😕
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.
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.
@@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
@@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.
@@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
what if you have a confirmed working pair of credentials?
Nobody hacking like that anymore, they just looking for a cable and then get into the room
Will work on a Mac?
what if ssh is configured on different ports then how I can use hydra for attacking ssh
How do I change my wifi icon on the top panel to make it like yours?
You can't. Coz you use Windows and he uses Linux! Lol
Thank you!!!!!!!!!!!!!!!
could please show us how the metasploit session can be exploited ?in a video please!
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.
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.)
@@l0_0l45 thank you friend
well comeback
Did you notice the wifi name is boob😂
Would this still work if the server had fail2ban configured?
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
@@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.
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.
Nobody talking about his wifi name
I keep getting 'cred can't be blank', can anyone tell me why?
Love this
Bro is there a way to bruteforce ssh passwords like how we bruteforce wifi
How can I use Linux or termux to bypass the pattern lock screen of android devices?
I don't think termux can do any of it, considering the fact that termux does not support rooting.
why isnt my ssh connecting to the host
Let's not talk about the wifi's name 💀
It said ssh could not be reached :(
very interesting cool content!
Yay kode 🎉
Fix your audio for god sake
Came here to say this - it sounds like it's recorded under water with a muffler over the potato microphone.
Do you hack a online games
Is the wifi network's name boob.? 😅
Please is there any exploitation?
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
@Null BYte please a tutorial of formjacking injecting script and give us the script thanks
Hi bro please I want to start and learn hacker please help
When ping all the packets lost'... It goes there's.. !!
Laptop of Doom
Ye hes cool
I want him to be my teacher
plzzz make more kali linux ethical hacking videos
Hydra FTW
Heh finally i can see someone i got used to watch!
SSH could not be reached
How easy u can see all those passwords.
Hai sir
Hey man im trying to learn python what is the most important things to know? //Batman
17:16 when u r fooled twice 😂
Read more
Got me twice! 😂😭
Man, never ever show your MAC address.
Plz help I want to learn hacking.
next time make a video with credential not by you, its to easy to find, because username and password already set before you crack!
How can I move files from the target machine to my own machine?
wow man... yujuuuu
Cant brute force me. Certificate access only ;-)
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.
@@dingokidneys where can I find the logs on whose trying to loging and scans?
@@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
you speak so fast calm down bro its an education video
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...
exploiting IS NOT bruteforcing YOU ARE CONFUSING beginners, it's impossible to bruteforce a good set password