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

Author Topic: how to add characters in this message ~Ex.) ("")  (Read 9429 times)

0 Members and 1 Guest are viewing this topic.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: how to add characters in this message ~Ex.) ("")
« Reply #15 on: January 20, 2016, 12:44:42 AM »
im literally being called an idiot
Many of us here are a good deal older than you, but we were your age once. You've told us your age.

We understand how young people often have the viewpoint that their knowledge is infallible - because we were like that when we were young too.  You will realise in time that many things you don't understand will affect what you think you do understand - and you'll learn more and more as you grow older just how much you don't know.

 If someone literally called you an idiot then you would see that written on the page.
That is what the word 'literal' means.

You are rather argumentative though, and don't respond to the comments that you fabricate nonsense about what you want to do.

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: how to add characters in this message ~Ex.) ("")
« Reply #16 on: January 20, 2016, 12:48:41 AM »
Why is Patio getting my credit?
I was trying to dereference Null Pointers before it was cool.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: how to add characters in this message ~Ex.) ("")
« Reply #17 on: January 20, 2016, 08:13:16 AM »
Quote
l the chaos
and
Quote
Re: how to add characters in this message ~Ex.) ("")

To avoid chaos, let's stcik to just one topic.
You want to add chars to a string that is the output of some command. Is that right?
In early versions of DOS you can use an alternative command interpreter. I do not know if that works ion present versions of Windows. One could patch a copy of the command.com file and rename it to command.2.com and ten use the comspec feature to make it the default interpreter.
So you wish to explore this? (It has already been done elsewhere.)


patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: how to add characters in this message ~Ex.) ("")
« Reply #18 on: January 20, 2016, 08:56:23 AM »
Patio you had no reason to close my last topic, all i had done was ask for a rating on my encrypted code and you started calling me a lier, telling me what i was using is pointless and saying that it is not encryption, you constantly say that your being patient but when i even give proof that my code if encrypted you locked it without even giving me a chance. It was not at all a malicious file. you didn't even try to use it in a bat file to see if it would even work you just constantly said that my information was incorrect. your mad because i proved you wrong. i used polymorphism which is a form of encryption that would commonly be used by viruses to avoid antivarus detection. but my file contained 0 viruses, worms, trojan or anything. it was just encrypted but you was to stubborn to take 5 seconds of your time copy and paste it into a batch flle and see if it would do anything. you just looked at it, clamed it a as bunch of garbage and starting telling me that it doesn't even work when ive ran and tested the program with 100% zero errors. please give me a logical reason of why you do that.
If you will just try to see if it works then you would stop telling me that im wrong because im not, your just to suborn to get proved wrong

No idea why you're ranting on me...i was not part of the discussion.

That being stated when you start insulting Members who volunteer their time to help it will not be tolerated...so you are on a short leash here as of yesterday.

patio.
" Anyone who goes to a psychiatrist should have his head examined. "

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: how to add characters in this message ~Ex.) ("")
« Reply #19 on: January 20, 2016, 10:25:48 AM »
You want to add chars to a string that is the output of some command. Is that right?

From their example, they want to demonstrate the output of commands. Their issue actually has nothing to do with quotes, as foxidrive demonstrated:

Code: [Select]
c:\>echo This is "echo |Del *.*" which displays
This is "echo |Del *.*" which displays
The quotes are displayed, here, so evidently that isn't an issue.  They don't want to display quotes, they want to display the output:

Quote
i want to be able to display the output of the command
They have erroneously assumed the quotes they have used are what is preventing the command output from being displayed, when the reality is that the command output is shown when you run the command.
I was trying to dereference Null Pointers before it was cool.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: how to add characters in this message ~Ex.) ("")
« Reply #20 on: January 20, 2016, 10:53:26 AM »
Thanks BC. Fro me it is very hard to  guess  what he wanted.

For What it is Worth department:
The accumulative output of any number of DOS commands can be easily captured by the user with the edit >mark option available in the DOS box.
Buts everybody knows that, -Right?
However, some might not know this DOS trick.

Preventing an MS-DOS window from automatically closing in Windows

This will allow you time to mark any part of the DOS box you want to copy and save to a TXT  file. One might do such to prepare a paper on how to use DOS commands.



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: how to add characters in this message ~Ex.) ("")
« Reply #21 on: January 20, 2016, 02:12:50 PM »
That was my concern, since it looks like the intent is to have the example output displayed from the batch program, which would, as you mention, require running the command- which in this case was del *.* which ought not to be run willy nilly.
I was trying to dereference Null Pointers before it was cool.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: how to add characters in this message ~Ex.) ("")
« Reply #22 on: January 20, 2016, 03:33:16 PM »
Maybe DEL *.*  should be a forbidden command. You would have to type out the words delete everything.

zask

    Topic Starter


    Intermediate

    • Experience: Experienced
    • OS: Other
    Re: how to add characters in this message ~Ex.) ("")
    « Reply #23 on: January 20, 2016, 09:17:59 PM »
    i didn't though is the thing. i tested it already, it completely works safely without any errors what so ever. I'm so positive that it is completely safe that i'm willing to take all responsibility if anyone ends up deleting there data. all it does is end explorer.exe, it could be fix by simply typing start explorer.exe in the command line, if no icons are appearing and you cant go to command prompt, you could type CTRL+ALT+DEL on the keyboard and open taskmgr.exe where you then could open the run dialog, type cmd.exe, and then add the start explorer command.

    You can see that even in it's non encrypted code that it does not delete anything further more than explorer.exe.

    dim count
    count = 0
    Set objNet = WScript.CreateObject("WScript.Network")
    result = MsgBox("Are you sure you want to continue?" ,vbYesNo+vbInformation, "Are you Sure?")
    if result = 6 then
        do
        strComputer = "."
        strProcessToKill = "explorer.exe"
        Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\"  & strComputer & "\root\cimv2")
        Set colProcess = objWMIService.ExecQuery ("Select * from Win32_Process Where Name = '" & strProcessToKill & "'")

        For Each objProcess in colProcess
                objProcess.Terminate()
        Next
        count = count + 1
        wscript.sleep 100
        loop until count = 20
        do
        password =Inputbox("Please Enter your Password","Password Required")
        if password = "PASSWORD" then
            WScript.Echo "Correct Password"
            Set WshShell = CreateObject("WScript.Shell")
            Dim objWMIService, objProcess, objCalc
            Dim strShell, objProgram, strComputer, strExe

            strComputer = "."
            strExe = "explorer.exe"
            ' Connect to WMI
            set objWMIService = getobject("winmgmts://"_
            & strComputer & "/root/cimv2")

            ' Obtain the Win32_Process class of object.
            Set objProcess = objWMIService.Get("Win32_Process")
            Set objProgram = objProcess.Methods_( _
            "Create").InParameters.SpawnInstance_
            objProgram.CommandLine = strExe

            'Execute the program now at the command line.
            Set strShell = objWMIService.ExecMethod( _
            "Win32_Process", "Create", objProgram)
            WshShell.Run "FOLDER"
            Set WshShell = Nothing
            exit do
        elseif password <> "PASSWORD" then
        WScript.Echo "Incorrect Password"
        end if
        loop until password = "PASSWORD"
    end if
    Wscript.quit

    « Last Edit: January 20, 2016, 09:38:19 PM by zask »

    zask

      Topic Starter


      Intermediate

      • Experience: Experienced
      • OS: Other
      Re: how to add characters in this message ~Ex.) ("")
      « Reply #24 on: January 20, 2016, 09:29:55 PM »
      Many of us here are a good deal older than you, but we were your age once. You've told us your age.

      We understand how young people often have the viewpoint that their knowledge is infallible - because we were like that when we were young too.  You will realise in time that many things you don't understand will affect what you think you do understand - and you'll learn more and more as you grow older just how much you don't know.

       If someone literally called you an idiot then you would see that written on the page.
      That is what the word 'literal' means.

      You are rather argumentative though, and don't respond to the comments that you fabricate nonsense about what you want to do.

      I never doubted anyone's knowledge based of there age, i just stated that my code was a form of encryption, he was saying that i was lying because nothing was being encrypted, but in fact it was, it's known as the definition of "polymorphic encryption". It's when the code it's self is set though a coded process based off of mutation techniques, the code would mutate it's own code into encrypted pattern, then at the end of it's code it would then decrypt all the encryption that was done originally at the beginning of the file. Thus executing the file as exactly as it would before the encryption was even added. I never said he was wrong in any of his knowledge besides the fact that he was informing that the code that i had was not encryption. The definition of polymorphism clearly states that it is right here.

      https://en.wikipedia.org/wiki/Polymorphic_code

      and again, I wasn't basing anyone's knowledge off of there age. I was basing there knowledge based of there understanding on the basic forms of encryption for virology, not just implying for polymorphism but metamorphism too.  Encrypting any code with the same methods of encrypting viruses, this does not even mean that malicious code is even added to it. it just following similar techniques in mutating it appearance of it's structure.

      http://searchsecurity.techtarget.com/definition/metamorphic-and-polymorphic-malware

      i mean of course he could have still saw the code from typing @echo on but it's possible to decrypt that statement on lines that can be interpreted by it. Or instead adding a bunch of encrypted @echo off signs to your code, causing to many bytes. you could add the decryption part of the code in a different batch file which is hidden, and then the encrypted password would not decrypt in the batch file (by the mean of the @echo off command) until you open the different batch file inside of the original one. Causing it's code to be then decrypted. it's not hard, i even separated the encryption part of the code from the decryption of the code. you could copy and paste them in different files, or if you could just do nothing at all and turn it into a exe file.

      The point of the code is to make it harder for people to understand what they are looking at. causing them trouble in trying to figure out what they are trying to crack to bypass the program's password screen. Like if you honestly read the post that he sated, he wasn't trying to teach me anything, it's very clear to see the negative tone displayed by the comments from that locked forum page. He could have at least attempted to do a little research based off what i was explaining before concluding that another person was incorrect based of the research on the form of encryption that he/she thought i was talking about. as i said, the topic had nothing to do with age, just because you have age and years programming skills doesn't mean you understand what the basics of malware is. a lot of adults tend to stay away from that topic. that's why i was basically saying that he didn't understand... (In the forms of malware encryption)
      « Last Edit: January 20, 2016, 10:18:35 PM by zask »

      zask

        Topic Starter


        Intermediate

        • Experience: Experienced
        • OS: Other
        Re: how to add characters in this message ~Ex.) ("")
        « Reply #25 on: January 20, 2016, 10:22:32 PM »
        Thanks BC. Fro me it is very hard to  guess  what he wanted.

        For What it is Worth department:
        The accumulative output of any number of DOS commands can be easily captured by the user with the edit >mark option available in the DOS box.
        Buts everybody knows that, -Right?
        However, some might not know this DOS trick.

        Preventing an MS-DOS window from automatically closing in Windows

        This will allow you time to mark any part of the DOS box you want to copy and save to a TXT  file. One might do such to prepare a paper on how to use DOS commands.

        the file isn't meant for people who know how to code, it's what someone like in your family would use for privacy from your peers, people who don't feel like going through the trouble of turning a batch file into a exe file. the code is to keep people with no experience in programming from clearly seeing the password by text or by editing.
        No real programmer would actually think of using batch to lock a folder. there are way to many ways to get past a batch password system.
        and i know about know about the "edit >mark option" but it's good that you like explain helpful commentary to others.

        zask

          Topic Starter


          Intermediate

          • Experience: Experienced
          • OS: Other
          Re: how to add characters in this message ~Ex.) ("")
          « Reply #26 on: January 20, 2016, 10:36:54 PM »
          Many of us here are a good deal older than you, but we were your age once. You've told us your age.

          We understand how young people often have the viewpoint that their knowledge is infallible - because we were like that when we were young too.  You will realise in time that many things you don't understand will affect what you think you do understand - and you'll learn more and more as you grow older just how much you don't know.

           If someone literally called you an idiot then you would see that written on the page.
          That is what the word 'literal' means.

          You are rather argumentative though, and don't respond to the comments that you fabricate nonsense about what you want to do.

          "literal" ...lol okay mybad.

          it was a figure of speech

          the reason that i have not had time to respond because i have been busy working to pay to feed my girlfriend's child (teen mother). I also have pre-ap school work almost everyday. due to the amount of comment's that was posted by multiple people, i have not had enough time to explain myself. causing this disagreement to further increase in it's confusion. It's it difficult to find time to comment to so many people at one time because i am only one person. I couldn't explain what i was talking about until right at the last moment because i was so busy trying to show the definition of what my form of encryption that he claiming that i was lying about. I wasn't the person trying to argue, i was telling the truth, i just didn't have time. all this responsibility that i have to take care of in the real world is adding stress on my back, and when someone started calling me a lier base on his/her incorrect encryption definition that was miss understood by my definition Polymorphic encryption definition. 
          « Last Edit: January 20, 2016, 10:59:09 PM by zask »

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: how to add characters in this message ~Ex.) ("")
          « Reply #27 on: January 20, 2016, 10:57:07 PM »
          Did we get off topic here?
          On can Google search and find these topics:
          password protect zip file windows 7/8
          password protect zip file mac
          password protect zip file windows 10
          open password protected zip filer

          Compression adds some overhead to getting into the folder. But so does encryption. Actually, compression and encryption work well together.

          So anybody can make a personal folder into a compressed fold with password. For most of us, that would be good protection for sensitive material.

          zask

            Topic Starter


            Intermediate

            • Experience: Experienced
            • OS: Other
            Re: how to add characters in this message ~Ex.) ("")
            « Reply #28 on: January 20, 2016, 11:01:23 PM »
            Did we get off topic here?
            On can Google search and find these topics:
            password protect zip file windows 7/8
            password protect zip file mac
            password protect zip file windows 10
            open password protected zip filer

            Compression adds some overhead to getting into the folder. But so does encryption. Actually, compression and encryption work well together.

            So anybody can make a personal folder into a compressed fold with password. For most of us, that would be good protection for sensitive material.

            That's exactly what ive been trying to say this whole time, all i asked for was a rating not a hate comment. i dont have time in my life for conflict like this.

            zask

              Topic Starter


              Intermediate

              • Experience: Experienced
              • OS: Other
              Re: how to add characters in this message ~Ex.) ("")
              « Reply #29 on: January 20, 2016, 11:03:45 PM »
              That was my concern, since it looks like the intent is to have the example output displayed from the batch program, which would, as you mention, require running the command- which in this case was del *.* which ought not to be run willy nilly.
              but still, no harm is caused, just a misunderstanding. everyone accusing me of the one who is ranting and im not even the person who started this whole debate. all i wanted was a quick crappy one comment thumbs up or rating, and and noting more simple than that. sorry for not knowing that this site wasn't designed for asking for opinions.

              I am very aware of the DEL|*.* command, and i watch every script that uses it very closely, and test it in a safe virtual environment. im not going to risk destroying my computer over some typo, or incorrect command. Im much more experienced in vbs than batch anyway. that's why i come here to ask my batch questions.

              i actually understand more than the average professional would expect from my age. I mainly play around in javascript and c++ as a hobbie. I started programming at 11, found a video on youtube about how to make some shutdown program in the shortcut console. i thought it was unique and desired to learn more about how the things i use work.

              if i would have known that i would have had the subject locked from posting that command, then i would't have, i thought the intention from your comments was from ignorance in not giving effort in trying to understand what the difference in what i was explaining by definition from what you was explain from my definition. it may have been a misunderstanding in the tone of our text. Causing each other to debate over who was right instead of trying debate over what the misunderstanding of your form of encryption was and/or made it differ from mine. to me it felt as if you was posting definitions based off an different encryption method, and putting no effort in stopping to read my definitions. 
              « Last Edit: January 20, 2016, 11:41:09 PM by zask »