Jump to content

hisoka

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by hisoka

  1. hisoka

    php

    Thank you justsomeguy
  2. hisoka

    php

    What I understood is this: the interpreter directly executes the instructions in the program source code . It read the first instruction and executes it .Then it reads the second instruction and executes it until the end of the program . The instructions in the source code program are executed by ,the interpreter , in high level language because the interpreter knows the high level language and knows the low level language ( the language of the CPU) . Based on this knowledge it can ,independently and without the intervention of the CPU , execute the program and output it in the computer monitor . Am I wrong ? correct me if I am wrong
  3. hisoka

    php

    I read again all the answers. This is my conclusion. If I am wrong correct me Correct me if I am wrong . PHP software takes the high level language instructions of the source code and interprets them to low level language so that the CPU can understand them . Executing the interpreter by the CPU is nothing more than executing the instructions that was interpreted by the PHP interpreter. In other words the PHP interpreter tells the CPU what to do . The same thing with Mozilla Firefox . Mozilla interprets Javascript code and once the CPU executes Mozilla it is executing the instructions that Mozilla interprets from high level language to low level language . In other words when Mozilla is executed by the CPU it tells it what it should do. Is it wrong or right?
  4. Sorry I will use more descriptive names Thank you very much for the link Proudly . I will take sometime to read it
  5. hisoka

    php

    "That's not specifically how it works, but it's the general idea" Could you please tell me how it works specifically ?? You can give me a link or links if you want too
  6. hisoka

    php

    after reading your last post I will sum it up and I would appreciate it if you tell if I understand what you wrote or not . The php program interprets the php code ,I write, to CPU ; that is it translates it to binary representation or machine code understandable by the CPU so that the CPU it executes our php code. In the same way the browser interprets the script to the CPU so that the CPU can executes it am I right ? or is this what you mean?
  7. Following this link : https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix I tried to use the multiply method to multiply two matrix like this : var m =[[3,4], [5,6], ]; var n =[[7,8], [9,2], ]; var l = multiply(m,n);console.log(l); However , the web console shows this error : multiply is not defined what is the problem?
  8. hisoka

    php

    "The PHP software itself is compiled. It reads in a PHP script and then gets to work executing that code with its own instructions." "Interpreted versus compiled languages have nothing to do with a CPU pipeline or instruction cycle. By that point all instructions are native CPU instructions." I did not understand what do you mean???
  9. hisoka

    php

    "The interpreter is software that is being executed by the CPU" who changes the interpreter code instructions into machine code so that the CPU can execute it ??? this is the first question "and passes them to the CPU" I read another thing : see Fetch the Instruction in http://en.wikipedia.org/wiki/Instruction_cycle it is not stated that the interpreter is the one who passes the instruction to the CPU
  10. hisoka

    php

    One moment please who executes the instructions of the code's interpreted language (php , python ..) the CPU or the interpreter????
  11. hisoka

    php

    in this link : http://en.wikipedia.org/wiki/Interpreter_%28computing%29 it is mentioned the following: "In computer science, an interpreter is a computer program that directly executes, i.e. performs, instructions written in a programming or scripting language, without previously compiling them into a machine language program". does this mean that the interpreter does the job of the computer CPU? and if yes does it mean that an interpreted language , like PHP and contrary to a compiled language like C++ , does not need to be transformed into machine code as it is directly executed by the interpreter???
  12. hisoka

    understand

    "There is no program that can unpack and deobfuscate code" What about this : https://puzzlefiles.com/Deobfuscate/index.html put this obfuscated script : (I obfuscated it here https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx) var _0x323f=["x63x6Fx6Ex73x6Fx6Cx65","x66x6Fx72x6Dx73","x6Cx6Fx67","x73x79x73","x75x73x65x72"];function show(){var _0x88bdx2=document[_0x323f[1]][_0x323f[0]];alert(_0x88bdx2);}function show1(){var _0x88bdx4=document[_0x323f[1]][_0x323f[2]];alert(_0x88bdx4);}function show2(){var _0x88bdx6=document[_0x323f[1]][_0x323f[3]];alert(_0x88bdx6);}function show3(){var _0x88bdx8=document[_0x323f[1]][_0x323f[4]];alert(_0x88bdx8);} and it will deobfuscate it "It's the same process, it just takes longer. Personally, I've never found it to be a good use of time to try and do something like that. I would rather just design a program myself to do the same thing." Does it mean that you cannot do it as it is a difficult process for you ?
  13. hisoka

    css

    <link rel="stylesheet" type="text/css" href="mystyle.css"> the link tag defines a link between HTML document and the external css file . href specifies the location of the css document. If the document is in http://w3schools.inv...om/web/example/mystyle.css" then why we do not include the complete url that specifies the location of the css document instead we include only the name of the css document . This was my question ??
  14. hisoka

    understand

    first question: You mean that if you find an obfuscated and packed code , you will unpack it and deobfuscate it then format it? is this what you mean? second question : when you try to understand a code that has million of lines . How/what will you do to understand it ? and the relationship between the different blocks in this million lines code , the relationship between the data in the line 250 and data in the line 2 million and how they interact together ?
  15. your answers are good . Especially yours . They are an inspiration for me and especially yours . Continue like this . Give me all what you know . It is always useful what you wrote . "and you are not getting the answers that you expect" I expect only one thing : To understand what is going on regardless of the answer . All answers are useful . What so ever is my reaction to them . It is and it will be in an instructive and scientific way . If I make an error . Correct me . :)
  16. hisoka

    javascript

    thank you dsonesuk: it becomes like this : <!DOCTYPE html><html><body><form name="console" onsubmit="return show()"><input name ="moderator" type="text" value="" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form><script>function show(){var a = document.console.moderator.value;alert(a);}</script></body></html> and this <!DOCTYPE html><html><body><form name="console"><input name = "moderator" type ="button" type="text" value="7" onclick="return show()"/></form><script>function show(){var a = document.console.moderator.value;alert(a);}</script></body></html>
  17. hisoka

    css

    let me sum up if we have , say 100 html page , in order to affect them with my , say mystyle.css file , all what I need to do is to include it in every page of my hundred html pages . Meanwhile if I want only one paragraph in the sixty-five html page to be affected all what I need to do is to make a css file specific for that page , say mystyle65.css , and include it only in my sixty-five html page. Is this what you mean davej? the inclusion process is like you wrote in your little piece of code : <link rel="stylesheet" type="text/css" href="mystyle.css"> if the mystyle01.css is , say in http://w3schools.invisionzone.com/web/example/mystyle01.css why we do not do like this : <link rel="stylesheet" type="text/css" href="http://w3schools.invisionzone.com/web/example/mystyle.css"> and like this for the sixty - five page <link rel="stylesheet" type="text/css" href="http://w3schools.invisionzone.com/web/example/mystyle65.css"> ??
  18. window.onload = init; is used without parenthesis why fnd in document.getElementById('btn1').onclick = fnd is used without parenthesis In JavaScript , there are what we call event handlers . Event handlers are little codes (methods) used to tell the browser what to do when an event occurs. the syntax of an event handler is like this [element].[event]=[function] element is a property of the document event is the event that will occur like clicking the mouse function is the function that will run once the event occurs. Now I will answer this question : window.onload = init; is used without parenthesis why fnd in document.getElementById('btn1').onclick = fnd is used without parenthesis it is simple because init or fnd without parentheses is a reference to a function and not a function . In other word init without parentheses is a reference a pointer to the function init() in function init() {document.getElementById('btn1').onclick = fnd;} and fnd without parentheses is a pointer or a reference to the function fnd() in function fnd(){document.write("writing this text overwrites the entire document");}
  19. "Have you never seen a Javascript error in the browser console?" if you look to my previous posts you will find the answer to your question . But I will refresh your memory a little http://w3schools.invisionzone.com/index.php?showtopic=52653&hl=http://w3schools.invisionzone.com/index.php?showtopic=52574&hl=
  20. "I've already explained it both syntactically and semantically. Go back and review my answers. If you do not know what effect adding the parentheses has, then look that up also." this is what you wrote to me : "OK, if you're only asking about the syntax then the parentheses tells it to execute the function." this is the reformulation of your answer : the parentheses tell it (tell this window.onload and thisdocument.getElementById('btn1').onclick ) to execute the function . All what you did in your answer is telling me the role of the parentheses did I ask about the role of the parentheses so that you answer me the parentheses tells it to execute the function??! if I did then please show me where (copy paste) I asked the contrary : first question : Posted 11 March 2015 - 11:21 PM Syntactically , why we used init in window.onload = init; and fnd in document.getElementById('btn1').onclick = fnd; without parenthesis ?? same question : Posted Yesterday, 03:07 PM: why init in window.onload = init; is used without parenthesis ? why fnd in document.getElementById('btn1').onclick = fnd is used without parenthesis ? I was asking why they are used without parentheses and you answered : then the parentheses tells it to execute the function
  21. hisoka

    javascript

    In this script <!DOCTYPE html><html><body><form name="console" onsubmit="return show()"><input type="text" value="hisoka" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form><script>function show(){var a = document.forms["console"]["hisoka"].value;alert(a);}</script></body></html> the value hisoka is shown in the form and this is normal but I did not succeed in making the alert box show it . Why the value of hisoka could not appear in the alert box ??
  22. hisoka

    css

    my journey in CSS begins now : in this link http://www.w3schools.com/css/css_intro.asp , it is written : The style definitions are normally saved in external .css files. With an external style sheet file, you can change the look of an entire Web site by changing just one file! suppose we have a website in which there are hundred of pages . We take the css file and put in another folder . Now we want to change the color of one sentence in a paragraph in the page number 65 . How is this possible by using an external css file ??
  23. hisoka

    understand

    "No, I mean I would run it through a Javascript formatter to format the code." but , in the context of reverse engineering, the code you will get is obfuscated and packed . So even if you beautify it and format it , it will serve you to nothing as you will never be able to understand it even when is formatted !!??
  24. "OK, if you're only asking about the syntax then the parentheses tells it to execute the function." again my question was not what is the role of the parenthesis my question was : Syntactically , why we used init in window.onload = init; and fnd in document.getElementById('btn1').onclick = fnd; without parenthesis ?? in other words , why init in : window.onload = init; is used without parenthesis why fnd in document.getElementById('btn1').onclick = fnd is used without parenthesis in other words syntactically , why init in window.onload = init is like this : window.onload = init and not like this window.onload = init() and the same for fnd ?? "you don't see that syntax error then maybe you're not looking in the correct place for error messages" what do you mean ? I read the content of the link you gave from the beginning to the end and I did as the page says . However , I forget to say that I have mozilla version 36.0.1 and may be it does not support strict mode "Obviously you aren't going to see an error unless you use an onerror codeblock" it is not written in the strict mode tutorial page you gave me that I should use "onerror codeblock"
  25. we cannot change a library . A library can be used or implemented in a piece of code or in a program so that we fulfill a desired task
×
×
  • Create New...