Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Input hiding (different from password hiding)  (Read 29734 times)

0 Members and 1 Guest are viewing this topic.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Input hiding (different from password hiding)
« Reply #45 on: April 20, 2009, 01:03:29 PM »
What he said is more or less:

Quote
I believe in you is 11 hours of the morning, but your screen name translates as "geek-21h00. You speak American English, but you write like someone who speaks a language derived from Latin. And occasionally, you write like someone who comes from another planet:

...from another planet

I have been told to avoid talking about my origin, All I am allowed to say here is that I am not of this world. But that is off topic anyway. You might start a poll on the forum about how many visitors you have like me. You could be surprised, The two of use are not the only ones.



Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Input hiding (different from password hiding)
« Reply #46 on: April 22, 2009, 02:58:05 PM »
Attached is a zip containing getpassword.exe which I wrote myself. To reassure yourself, do a virus scan before running. Crude but it works OK for a batch type project.

Writes the typed password into a file in the same folder called password.txt which you should read and delete immediately.

use it like this

test.bat

Code: [Select]
@echo off
echo Password demo
echo.
echo We will now ask for a password
echo.
getpassword.exe
for /f "delims=" %%P in (password.txt) do set password=%%P
del password.txt
echo the password typed was %password%


Code: [Select]
S:\Test\Basic\pword>test
Password demo

We will now ask for a password

Enter password : ***
the password typed was cat




I just found this out now, and this could annoy the people using the script...backspace counts as a key, and so does clicking the X button.

Backspace counts as:
Code: [Select]
Closing counts as:
Code: [Select]
ÿk
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

gh0std0g74



    Apprentice

    Thanked: 37
    Re: Input hiding (different from password hiding)
    « Reply #47 on: April 22, 2009, 06:46:54 PM »
    if it annoys you, then modify it . you have the source code .

    Helpmeh

      Topic Starter


      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: Input hiding (different from password hiding)
    « Reply #48 on: April 22, 2009, 06:48:57 PM »
    if it annoys you, then modify it . you have the source code .
    It's an EXE file.
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    gh0std0g74



      Apprentice

      Thanked: 37
      Re: Input hiding (different from password hiding)
      « Reply #49 on: April 22, 2009, 06:54:27 PM »
      its done with QBasic / Freebasic. If you can download exe from the net, i am sure you can download qbasic/freebasic.

      Helpmeh

        Topic Starter


        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: Input hiding (different from password hiding)
      « Reply #50 on: April 22, 2009, 06:58:22 PM »
      its done with QBasic / Freebasic. If you can download exe from the net, i am sure you can download qbasic/freebasic.
      It's not a HUGE deal, I really don't want to download anything that's not absolutely nessasary. Like Dias said, crude but it works.
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      gh0std0g74



        Apprentice

        Thanked: 37
        Re: Input hiding (different from password hiding)
        « Reply #51 on: April 22, 2009, 07:17:11 PM »
        It's not a HUGE deal, I really don't want to download anything that's not absolutely nessasary. Like Dias said, crude but it works.
        then how did you download Dias zip or exe? its still a download right? if you can make do with your slight annoyances then so be it.

        Helpmeh

          Topic Starter


          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Input hiding (different from password hiding)
        « Reply #52 on: April 22, 2009, 07:18:05 PM »
        then how did you download Dias zip or exe? its still a download right? if you can make do with your slight annoyances then so be it.
        The EXE came in the zip attached to his post.
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        gh0std0g74



          Apprentice

          Thanked: 37
          Re: Input hiding (different from password hiding)
          « Reply #53 on: April 22, 2009, 07:24:46 PM »
          The EXE came in the zip attached to his post.
          precisely, you fired up browser and came to this forum , to this thread and downloaded something. Its the same as you fire up your browser, go to the site where you can download qbasic, and then use it to modify your code and compile it.  get it?

          Helpmeh

            Topic Starter


            Guru

          • Roar.
          • Thanked: 123
            • Yes
            • Yes
          • Computer: Specs
          • Experience: Familiar
          • OS: Windows 8
          Re: Input hiding (different from password hiding)
          « Reply #54 on: April 22, 2009, 07:26:35 PM »
          precisely, you fired up browser and came to this forum , to this thread and downloaded something. Its the same as you fire up your browser, go to the site where you can download qbasic, and then use it to modify your code and compile it.  get it?
          I looked at the code, and it was a fair bit confusing...I really don't want to learn another language, just to make something like 2% better...when chances are people won't be needing it anyway.
          Where's MagicSpeed?
          Quote from: 'matt'
          He's playing a game called IRL. Great graphics, *censored* gameplay.

          Dias de verano

          • Guest
          Re: Input hiding (different from password hiding)
          « Reply #55 on: April 23, 2009, 12:16:14 AM »
          I just found this out now, and this could annoy the people using the script...backspace counts as a key, and so does clicking the X button.

          Backspace counts as:
          Code: [Select]
          Closing counts as:
          Code: [Select]
          ÿk

          So what? Why are these problems?

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Input hiding (different from password hiding)
          « Reply #56 on: April 23, 2009, 09:41:08 AM »
          backspace, after all, is a key.
          I was trying to dereference Null Pointers before it was cool.

          macdad-



            Expert

            Thanked: 40
            Re: Input hiding (different from password hiding)
            « Reply #57 on: April 23, 2009, 11:13:29 AM »
            Here  ;)

            This avoids the Backspace and closing keys showing up.
            If you dont know DOS, you dont know Windows...

            Thats why Bill Gates created the Windows NT Family.

            Helpmeh

              Topic Starter


              Guru

            • Roar.
            • Thanked: 123
              • Yes
              • Yes
            • Computer: Specs
            • Experience: Familiar
            • OS: Windows 8
            Re: Input hiding (different from password hiding)
            « Reply #58 on: April 23, 2009, 02:32:51 PM »
            This avoids the Backspace and closing keys showing up.
            Thanks macdad, but I'm afraid that won't work (or I don't know how it could work). What I happens is the user enter's their username, then their password. If the username and password don't match a line in a file, then the user tries again, or gives up...Is there a way that it can MASK the input (like in visual basic), instead of doing it letter by letter?
            Where's MagicSpeed?
            Quote from: 'matt'
            He's playing a game called IRL. Great graphics, *censored* gameplay.

            614olbaid



              Rookie

              Re: Input hiding (different from password hiding)
              « Reply #59 on: April 23, 2009, 03:06:32 PM »

              helpmeh, i seen too possible ways of masking the input

              First, Using a 3rd party program to add colors to the NT prompt,  for example making the input line black on black,

              Second, Using Getkey.com getkey.com accepts input in the form of one charachter at a time, the input as stored as the number of the letter on the keyboard and set into %ERRORLEVEL%

              So basically it would be enterting the password 1 letter at a time, but instead of password the input and matching input from file would be something like 1273049048208202 , just a string of numbers.