Jump to content

hisoka

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by hisoka

  1. I have a png image in which there this block zTXtEmail..xÚ.GÌÌ+Ñós.Q(7Ö25..'„.r×eµé....IEND®B`‚ I know that in the zTXt there is a text according to this : A zTXt chunk contains: Keyword 1-79 bytes (character string) Null separator 1 byte (null character) Compression method 1 byte Compressed text datastream n bytes Keyword = Email Null separator is = 00 Compression method is 00 and from x = 78 in hexadecimal until IEND the end of the file it is the text data stream : xÚ.GÌÌ+Ñós.Q(7Ö25..'„.r×eµé.... So I would like to decode the above text data stream to make it readable but I am unable to do it . Please help
  2. "If I search for that error message I see a lot of articles talking about how you need to install the issuer or root certificate...." None of the articles I read helped me solve my problem . If you say there a lot of articles that show me how to install root certificate in windows 32 bit + enabling ssl in win32 curl then I will be thankful if you provide me of some of them
  3. ok but I have some questions : 1) is it possible to open the page of a website using curl instead of clicking on my browser then writing the url of the site i want to access ? and if yes how ? 2) what I got in my cmd is it the home page of the website or what is it ?
  4. I tried to access this site from my windows cmd command: http://curl.haxx.se using curl curl http://curl.haxx.se When I run curl http://curl.haxx.se , I got a lot of html attributes and tags , in my cmd , of the curl.haxx.se website but I could not open the website in my browser . I do not want to get html tags when I run the above command but I want to get the page of the website in my browser so how I can do it ?
  5. I downloaded curl for windows xp 32 bit from this site : http://curl.haxx.se/download.html Win32 - Generic section the one I downloaded in the above section was : Win32 2000/XP zip 7.40.0 libcurl SSL Günter Knauf 3.37 MB and it works . However when I try to access a site that uses SSL , like this : curl https://www.example.com I got this error : curl : 60 SSL certificate problem : unable to get local issuer certificate More details : http://curl.haxx.se/docs/sslcerts.html I went to http://curl.haxx.se/docs/sslcerts.html and tried to find the solution to my problem but I could not . I read the pdf documentation that was installed with curl but I could not find the solution to the problem. I installed other versions in the Win32 - Generic section , but when I run them , it says curl.exe is not a 32 bit windows application . I googled many articles but they did not help me . I am really stuck . I need help
  6. please can you tell me what is the tool or the software that I must use or in which I should put my php code for example this : <?php$userAgent="Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Firefox/38.0";$accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";$cookies="fusion_visited=TRUE; PHPSESSID=d7993947044de57d7ca8d2c23eca3875fusion_user=86940.dcc999f4a661e513b228c29887c3ea03";$handle="gzip, deflate";$ch = curl_init();curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language:en-US,en;q=0.5',));curl_setopt($ch , CURLOPT_URL,"https://www.examples/index.php");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );curl_setopt($ch , CURLOPT_SSL_VERIFYHOST,false);curl_setopt( $ch, CURLOPT_USERAGENT, $userAgent );curl_setopt($ch, CURLOPT_COOKIE, $cookies);curl_setopt($ch, CURLOPT_FORBID_REUSE,0);curl_setopt($ch, CURLOPT_REFERER, "https://www.examples.com/index.php");curl_setopt($ch, CURLOPT_ENCODING ,$handle);$output=curl_exec($ch);print $output;curl_close($ch);?> in order to connect to the website ? should I put my php code in a normal notepad ? or there is a special tool for doing it ?
  7. hisoka

    curl

    when I use this curl command in my windows cmd : curl --user username:password -k https://www.example.com I got the content of the website in the cmd with html like <div> and <br> however when I refreshed the home page of the website and looked at it , I noticed that I am not logged in Why ? what is the problem?
  8. hisoka

    php wrapper

    I forget to link . I will link
  9. hisoka

    php://input output

    I do not understand when I copy paste a paragraph in the forum , part of it does not appear
  10. hisoka

    php://input output

    sorry sorry I made an error when putting the above paragraph without being aware of it . http://php.net/manual/en/wrappers.php.php is a kind of meta-wrapper designed to permit the application of filters to a stream at the time of opening. This is useful with all-in-one file functions such as readfile(), file(), and file_get_contents() where there is otherwise no opportunity to apply a filter to the stream prior the contents being read. This is what I meant . I cannot understand it
  11. hisoka

    raw http header

    "Raw means it hasn't been processed", and when it is executed or processed what we call it ?
  12. hisoka

    php://input output

    the time of opening. This is useful with all-in-one file functions such as readfile(), file(), andfile_get_contents() where there is otherwise no opportunity to apply a filter to the stream priorthe contents being read. I would like to have a clear explanation thanks
  13. hisoka

    php wrapper

    I do not understand what is a php wrapper or php wrappers? anyone has a clear and simple explanation so that I can understand?
  14. hisoka

    raw http header

    What is the meaning of "raw http header"? why we call it raw ? we call it raw because it is sent in the form of <?php ....?> ?? what is the difference between raw http header and normal http header??
  15. hisoka

    math symbol

    ok Foxy Mod thank you
  16. hisoka

    math symbol

    In what language? In no language . It is only a mathematical question . The question is : does double modulo exists or not %% ?? I mean for example 5 modulo modulo 2 that is 5 %% 2 and this is what I want to know
  17. hisoka

    math symbol

    hello everybody . I know this sign in math % modulo . For example 9%2 = 1 but I do not know this %% together (double modulo). For example 9%%2 Does it even exist ? and if yes if we have 7845 %% b = 0 how do we find b ??
  18. "The 302 response is the server telling the browser to redirect to another page, which gives a 200 response". For what is the redirection needed? why the server does not give the 200 response directly? "With that code, for one, you're not sending a username and password" I searched in Google for form based authentication using php curl but I could not find any article . I cannot find the way to send the username and password , in a form based authentication , using php curl "In fact you probably shouldn't set any static cookies, you should only send back to the server what it send to you." it sent the following cookie to me : "PHPSESSID=d7993947044de57d7ca8d2c23eca3875; path=/; secure; httponlyfusion_lastvisit=1434144212; expires=Sat, 13-Jun-2015 03:04:34 GMT; Max-Age=3600; path=/; secure; httponly" so should I turn the above cookie back using php curl ?
  19. what about this : <a href="http://localhost/index.php">link</a> ? I need to put the javascript link in a website . How to do that ?
  20. I do not know to what section belongs this theme to javascript or php but I prefer to put it in php . My website url is http://localhost/index.php . How to put a link , for example , in http://w3schools.invisionzone.com homepage that when clicked by a user , it takes him to my website ???
  21. hisoka

    php and text file

    You are right . I was not aware of that . Thank you
  22. I opened the network section of Mozilla web developer tool , then I put my username and password and click login to see what I will get . Before even asking for what is wrong with the little script I wrote , I have a question about the result that the network section of Mozilla gave me . I wrote my password and username in the login form and then clicked the login button . However , when I checked the method part of the network section , I noticed the following: Method : 302 post file : / requested url : https://www.examples.com request method : post status mode : 302 temporary removed then under the 302 post , there : Method : 200 get file: index.php requested url : https://www.examples.com/index.php request method : get status mode : 200 ok Normally the method is post because I submitted my username and password through the login form so why the browser gave me get 200 ok and post 302 removed temporary ? Now coming to the little script I wrote : <?php$userAgent="Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Firefox/38.0";$accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";$cookies="fusion_visited=TRUE; PHPSESSID=d7993947044de57d7ca8d2c23eca3875fusion_user=86940.dcc999f4a661e513b228c29887c3ea03";$handle="gzip, deflate";$ch = curl_init();curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language:en-US,en;q=0.5',));curl_setopt($ch , CURLOPT_URL,"https://www.examples/index.php");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );curl_setopt($ch , CURLOPT_SSL_VERIFYHOST,false);curl_setopt( $ch, CURLOPT_USERAGENT, $userAgent );curl_setopt($ch, CURLOPT_COOKIE, $cookies);curl_setopt($ch, CURLOPT_FORBID_REUSE,0);curl_setopt($ch, CURLOPT_REFERER, "https://www.examples.com/index.php");curl_setopt($ch, CURLOPT_ENCODING ,$handle);$output=curl_exec($ch);print $output;curl_close($ch);?> when I run the above script it gives no error but the page remains white and nothing is displayed . Now I am stuck on what I am missing
  23. hisoka

    php and text file

    I have a web server Apache installed in my computer with PHP of course and I want the text file file whose name is zone.txt to be opened in my URL like this : when I put this URL in my browser http://localhost/zone.txt my browser displays the zone.txt for me . I do not know how to do it any article to read first or any suggestion
  24. First , thank you very much to correct me and to wake me up to something I ignore . Now I know at least that HTTP basic authentication is not form based authentication "If you are talking about a website that has a login form on the page, that is not HTTP authentication." I am talking about form based authentication that is a website that has a login form that must be filled with username and password : Using the php curl little script above I was trying to login in a website that has a login form in the page but I failed .
×
×
  • Create New...