How to Extract Plaintext Wi-Fi Passwords (with Rust)

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • jh.live/keeper || Keeper Security offers a privileged access management solution to deliver enterprise grade protection all in one unified platform -- keep your users, your data, and your environment secure with Keeper! jh.live/keeper
    Special thanks to colleagues @MEhrn00 and @Nordgaren for all their help in preparing this video 🙏
    Free Cybersecurity Education and Ethical Hacking with John Hammond
    🔥RUclips ALGORITHM ➡ Like, Comment, & Subscribe!
    🙏SUPPORT THE CHANNEL ➡ jh.live/patreon
    🤝 SPONSOR THE CHANNEL ➡ jh.live/sponsor
    🌎FOLLOW ME EVERYWHERE ➡ jh.live/discord ↔ jh.live/twitter ↔ jh.live/linkedin ↔ jh.live/instagram ↔ jh.live/tiktok
    💥 SEND ME MALWARE ➡ jh.live/malware

Комментарии • 125

  • @kushagrasaxena5202
    @kushagrasaxena5202 6 месяцев назад +26

    1:30 missed opportunity to say "I am little RUSTY"

  • @xAbdulRhmanX
    @xAbdulRhmanX 6 месяцев назад +5

    Hi John, I enjoy all of your videos. But I want to add something here, the WiFi passwords are encrypted in Windows using DPAPI. So, only the user who connected to the WiFi can see the password. For example, if on the same system user A connected to the WiFi "test" the user B can't read the password, it only can read the SSID. DPAPI is used a lot on Windows and other apps too, for example Chrome uses it to store your credentials in an encrypted way but that is not very secure as any one who has a session to your user can decrypt these credentials without specifying any decryption password

  • @byk1lla
    @byk1lla 6 месяцев назад +5

    this man is my favorite cyber sec channel i love his contents

    • @saintebruneaux1788
      @saintebruneaux1788 6 месяцев назад +2

      Yup! Him, David Bombal, and NetworkChuck as well 👍🏽

    • @stopper0203
      @stopper0203 6 месяцев назад +1

      Cyberspatial was a good one too - but I think he stopped making videos

    • @saintebruneaux1788
      @saintebruneaux1788 6 месяцев назад

      @@stopper0203 Should I check it out though he may not be up to date with his content?

  • @urtootall
    @urtootall 6 месяцев назад +3

    I somehow love those videos, but the programming flies right over my head, every time xD

    • @jepunband6280
      @jepunband6280 5 месяцев назад +1

      or just open up command prompt and run a simple command to view the saved passwords.

    • @S6cout
      @S6cout 4 дня назад

      @@jepunband6280 he literately explained why this is a bad idea withen like the first few minutes lol

  • @Elon_Mapc
    @Elon_Mapc 6 месяцев назад +124

    I thought rust is a game

    • @NICE10433
      @NICE10433 6 месяцев назад +26

      We raid here, but we raid the computer.

    • @Alfred-Neuman
      @Alfred-Neuman 6 месяцев назад +25

      If Rust was made with Rust, Rust would be good, because Rust is good...

    • @waterlord6969
      @waterlord6969 6 месяцев назад

      ​@@Alfred-Neuman😬🥴😵

    • @0123Jas
      @0123Jas 6 месяцев назад +2

      Funniest comment I saw all day 🤣 😂

    • @rodricbr
      @rodricbr 6 месяцев назад +1

      @@Alfred-Neumanlol, good one

  • @Redditard
    @Redditard 5 месяцев назад +2

    Can't you just also, Settings > WiFi > "Network Name" > View Wi-Fi security key? 0:27

  • @riigel
    @riigel 6 месяцев назад +17

    rust is indeed hardcore 😅
    more rust!!

  • @rodricbr
    @rodricbr 6 месяцев назад +27

    It would be cool if the code for the project was included in your github or somewhere in the description!

    • @bobmarley8334
      @bobmarley8334 6 месяцев назад +4

      I think they like doing that. Self pleasure, I don't know. This happens in a lot of channels.

  • @viktorpupovic9565
    @viktorpupovic9565 6 месяцев назад

    Djude this is awesome , thanks for teaching us bro. 💪😃🖖

  • @rccowboys
    @rccowboys 5 месяцев назад

    You got your own way of typing. It withs for you, but it's weird to watch.. in a good way though. Great video

  • @rtzgf67games7
    @rtzgf67games7 6 месяцев назад +9

    Are you allocating memory for the pointers you pass into windows functions?

    • @nordgaren2358
      @nordgaren2358 6 месяцев назад +6

      No, They are null pointers. The function expects a pointer to a pointer, so he is making a null ptr, with std::ptr::null_mut(), and passing a mutable reference to that pointer to the function. Windows then allocates memory and writes the allocated address to the pointer reference that was passed it. It's why we have to call the WlanFreeMemory function on those pointers. Because the Wlan library is what is allocating the memory, not the Rust program.

    • @rtzgf67games7
      @rtzgf67games7 6 месяцев назад +1

      @@nordgaren2358 Aha so the function allocates the memory needed. Thanks!

  • @Karam99443
    @Karam99443 6 месяцев назад

    You helped me to scaring my neighbors😂😂😂😂😂

  • @VG-or1nu
    @VG-or1nu 6 месяцев назад +4

    I love educational content ❤

  • @DividesByZer0
    @DividesByZer0 6 месяцев назад +12

    But what about EDR, IDS/IPS? I have a hard time believing techniques like this will work against an enterprise solution like crowdstrike. It's cool I guess.

    • @_JohnHammond
      @_JohnHammond  6 месяцев назад +9

      I unfortunately don't have a CrowdStrike sandbox to test personally, but I reached out to someone in the Discord who had and they tried it -- no alerts with CrowdStrike Falcon sensor running, from what they shared. SmartScreen would naturally pop up since it is currently an unsigned binary, though.

    • @zanez7953
      @zanez7953 6 месяцев назад +2

      @@_JohnHammond Thank you for verifying your claims, I love you very much

    • @exithe
      @exithe 6 месяцев назад +3

      I work for one of these companies and you would be surprised how many things don't get flagged, you got to keep in mind that they are trying to create alerts for one size fits all by default. Companies want actionable alerts so wayyyy too much gets left on the wayside because it creates work to tune lol... honest truth.

  • @nicolodaddato8238
    @nicolodaddato8238 6 месяцев назад +3

    i love your video , but for the next time could you move your camera away from the code

  • @EnochOkikiJesus
    @EnochOkikiJesus 6 месяцев назад

    Hammond's the CodeKeeper 🥵🥵

  • @yaboy7120
    @yaboy7120 6 месяцев назад

    I recently started a new IT job with limited documentation and essentially no IT dept, so I had to use the line in the beginning to get the password for future device onboardings.

  • @justinpinson8575
    @justinpinson8575 6 месяцев назад

    what a legend!

  • @iblackfeathers
    @iblackfeathers 6 месяцев назад +3

    thumbnail made it look like it's specifically attacking iphones for wifi passwords.

  • @timecop1983Two
    @timecop1983Two 6 месяцев назад +1

    I have a question? How do you research tools and techniques?

    • @nordgaren2358
      @nordgaren2358 6 месяцев назад +1

      Google. GitHub. Training material like Maldev Academy. Joining communities related to the tools you are trying to make and asking questions.
      Existing tools on GitHub are extremely helpful. Working code is always some of the best documentation.
      In this case, you could even learn how to make this tool just by looking at the Microsoft documentation!

    • @user-he4ef9br7z
      @user-he4ef9br7z 6 месяцев назад +1

      Read CVEs

  • @zanidd
    @zanidd 6 месяцев назад +1

    like if you're vibing to the beat in the intro

  • @ReligionAndMaterialismDebunked
    @ReligionAndMaterialismDebunked 6 месяцев назад

    Early crew. Shalom. :3

  • @CookieMonster-fc7jz
    @CookieMonster-fc7jz 6 месяцев назад

    Good video - thanks for the share

  • @user-td4pf6rr2t
    @user-td4pf6rr2t 6 месяцев назад

    I think john jump shipped and turned team GUI.- Loads happens between fingers and the display ive always heard.

  • @ardwetha
    @ardwetha 6 месяцев назад +5

    The entire Windows system should have a CVE. Change my mind.

  • @MatinDevs
    @MatinDevs 6 месяцев назад

    awesome ❤

  • @snudget
    @snudget 6 месяцев назад +1

    Sorry, didn't work on my linux machine

  • @MIRLOX_mirilox
    @MIRLOX_mirilox 6 месяцев назад

    Thank you brother am from marocco

  • @gamereditor59ner22
    @gamereditor59ner22 6 месяцев назад +1

    Interesting....🤔

  • @ReligionAndMaterialismDebunked
    @ReligionAndMaterialismDebunked 6 месяцев назад

    Bravo!!

  • @poggiostefano
    @poggiostefano 6 месяцев назад

    Nice another Hacking video🤩

  • @Mezzosd
    @Mezzosd 6 месяцев назад +1

    how to extract password from sqlite3 files saved in the application

  • @AGASTRONICS
    @AGASTRONICS 6 месяцев назад

    I guess I should be able to do this with Osquery since devices trust the program. 😅

  • @baba01hacker
    @baba01hacker 6 месяцев назад

    W video bro 🎉

  • @photonz_
    @photonz_ 6 месяцев назад +2

    anyone know what keyboard john is using?

    • @vachaspathit9351
      @vachaspathit9351 6 месяцев назад

      i think its 60 or 65% keyboard dont know about name maybe razer?

    • @nordgaren2358
      @nordgaren2358 6 месяцев назад

      It's a custom keyboard, I believe. He talked about it on a stream about 3 weeks ago maybe 4?

  • @micochu9000
    @micochu9000 6 месяцев назад

    I have also like this but it was built in batch script, using netsh command and export as XML

  • @fadiallo1
    @fadiallo1 6 месяцев назад

    Hello My Friend.

  • @SaltyBalsZ
    @SaltyBalsZ 6 месяцев назад

    EDR injection can be bypassed

  • @TarasShabatin
    @TarasShabatin 6 месяцев назад

    I thought that a person who is "new" in Rust should struggle while writing a code...😅

  • @Luix
    @Luix 6 месяцев назад

    so the api doc is in C++

  • @abbasmahmoud360
    @abbasmahmoud360 6 месяцев назад

    Years ago

  • @uuu12343
    @uuu12343 6 месяцев назад

    I use Rust, btw
    The new "I use Arch btw"

  • @ThisIsJustADrillBit
    @ThisIsJustADrillBit 6 месяцев назад

    First! ❤
    Oooo so rust isnt a game? Hahaha

  • @FELDCORP
    @FELDCORP 4 месяца назад

    The windows crate is awfully documented and I hate my life each time I open it.

  • @bobbyrandomguy1489
    @bobbyrandomguy1489 6 месяцев назад +6

    "cyber security professional" "uses tiktok"

  • @jackcarroll2071
    @jackcarroll2071 6 месяцев назад +1

    Hey John what's the best way to get more involved in ethical hacking? Started cybersecurity few months ago.

    • @ggsap
      @ggsap 6 месяцев назад +2

      do you really think you are in any way different from the 100s of the same generic annoying questions he gets like yours

    • @Alfred-Neuman
      @Alfred-Neuman 6 месяцев назад

      @@ggsap
      I need to know how to ethically hack Fortnite V-Bucks?
      Asking for a friend...
      😂

    • @Y0GAAAA
      @Y0GAAAA 6 месяцев назад

      ​@@ggsap shut up \^_^/

    • @jackcarroll2071
      @jackcarroll2071 6 месяцев назад

      did I say I was any different chill tf out. It never hurts to ask a question. I was looking through comments on his other videos for an answer to a similiar question and hadnt seen it asked. Worse thing that could happen is no response big fuckin deal. you out here wasting energy over being negative rather than answering a simple question to someone who is seeking knowledge most likely in a position you once were in previously. If being a prick on the internet gets you off or something have it 😉@@ggsap

  • @iqbal8991
    @iqbal8991 6 месяцев назад

    Where password on new connection wifi?

  • @virgilggx
    @virgilggx 6 месяцев назад

    Does not work on Windows 11. I enter "Failed to get auth for this profile".

    • @vertihippo1274
      @vertihippo1274 21 день назад

      ...He is running Windows 11 in this video.

  • @IlliaZhdanov
    @IlliaZhdanov 5 месяцев назад

    quick tip: Press alt+enter or whtvr the keybind is to auto import all the stuff. Please stop manually doing this, it triggers me. Just Alt+Enter and all will be fine

  • @user-du4ly6cj5h
    @user-du4ly6cj5h 6 месяцев назад

    Hy how are you

  • @TheOneHong
    @TheOneHong 6 месяцев назад

    how about wpa2 enterprise? (username, pw)

  • @locaboy336
    @locaboy336 6 месяцев назад

    How to analyse a malware that have (img , doc , xsl ) extension

    • @AGASTRONICS
      @AGASTRONICS 6 месяцев назад

      For images the first step I guess exif

    • @AGASTRONICS
      @AGASTRONICS 6 месяцев назад

      For xsl this first step confirm if their are no white text on white background

    • @AGASTRONICS
      @AGASTRONICS 6 месяцев назад +1

      For doc turn on ports scanning and set up trusted IP. Then double-click to open the file. Note: it may be tricky sometimes so check for changes in your registry

    • @locaboy336
      @locaboy336 6 месяцев назад

      @@AGASTRONICS thanks a lot 🙂

    • @John-lg1vf
      @John-lg1vf 6 месяцев назад +1

      @@locaboy336 that advice is awful btw, it's easy to see file, registry and network changes. Do a malware analysis course and you'll learn this at the beginner level.

  • @mrDiynot
    @mrDiynot 6 месяцев назад

    You not giving us code🙂

  • @marekmaxpabianice
    @marekmaxpabianice 6 месяцев назад +2

    1.2 mln sub and you claim Windows STORES passwords in clear text? Revealing sth in clear text and storing in clear text is not the same...

  • @JTsek
    @JTsek 6 месяцев назад +1

    16:44 - 18:22 I think there was an editing error

    • @_JohnHammond
      @_JohnHammond  6 месяцев назад +1

      You are right -- thank you!! Fixing now. :)

  • @vachaspathit9351
    @vachaspathit9351 6 месяцев назад

    what is the editor name

    • @julfoi2139
      @julfoi2139 6 месяцев назад +1

      Its RustRover from Jetbrains

    • @vachaspathit9351
      @vachaspathit9351 6 месяцев назад

      @@julfoi2139 ohh thanks a lot !

  • @dydarjadmin
    @dydarjadmin 6 месяцев назад

    Неплохо,но слишком просто

  • @chaoskong2987
    @chaoskong2987 6 месяцев назад

    Title is a bit misleading isn’t it?

    • @_JohnHammond
      @_JohnHammond  6 месяцев назад

      what would you like the title to be instead

    • @chaoskong2987
      @chaoskong2987 6 месяцев назад

      @@_JohnHammond Using the Win32 API to grab ClearText passwords. Love the videos btw

  • @barneyclarke7051
    @barneyclarke7051 6 месяцев назад

    Why rust? C# IDEs have linter for win32 api

    • @_JohnHammond
      @_JohnHammond  6 месяцев назад +1

      Just less likely for an AV to flag on a Rust compiled binary-- you can't as easily do as much introspection and analysis that you would be able to do on a C# exe

  • @luzclarke6333
    @luzclarke6333 6 месяцев назад

    Use macros #[

  • @maulanakiki
    @maulanakiki 6 месяцев назад

    Mr Can we hack but only use a mobile phone?

  • @frankhaugen
    @frankhaugen 29 дней назад

    Rust is so ugly as a language 😢
    It's bringing back the Java joke of: make sure you are paid per line of code😂

  • @hosaenameen303
    @hosaenameen303 6 месяцев назад

    ةذج

  • @trytoo5167
    @trytoo5167 6 месяцев назад

    wtf didnt know this existed. Makes inputting a wifi password on behalf of the user pointless.

    • @cjreek
      @cjreek 6 месяцев назад +1

      This only works if the user has already entered the password for the wifi connection once and windows saved it.

  • @iamwitchergeraltofrivia9670
    @iamwitchergeraltofrivia9670 6 месяцев назад

    Hahahhahahhahahahahhahahahahah you cannot show at me wlan