Jump to content

unknown1

Members
  • Posts

    128
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

unknown1's Achievements

Member

Member (2/5)

0

Reputation

  1. unknown1

    $_GET

    I am using $_GET[] values to run sql queries on my database and display results.... What I want to know it this safe to do so, if I am using PDO prepared statements, and binding the $_GET values with ids in my query... addition I am escaping the values before they hit the browser. Do I need to consider anything else to do this safely?
  2. it's always a number with the 8.99 format
  3. (.*(?=http))(http:\/\/.*?(?=\s))(.*) works however, it doesn't stop after the 8.99 like it should.
  4. How would I go about finding this pattern? some random text http://www.somesite.com/en/bluhbluhbluh/?partner=compare&cy=EN woot 8.99 i tried [A-Za-z][\n]{0,}[http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?]{0,}[\n]{0,}[A-Za-z0-9\.] only this part http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?]{0,}[\n]{0,}[A-Za-z0-9\. is working to find the url but can't get everything else seems like anything i put before or after http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)? does nothing. Need to get "some random text" and "woot 8.99" in addition to the url
  5. But Thanks!! I thought I tried it like $html = file_get_html("http://".$city.".somesite.com/buy-and-sell-Page".$pg."ZZisCitySearchtrue"); already...
  6. $html = file_get_html("http://".$city."somesite.com/buy-and-sell-Page".$pg."ZZisCitySearchtrue"); // doesn't work because it should be a sub domain like $html = file_get_html("http://".$city.".somesite.com/buy-and-sell-Page".$pg."ZZisCitySearchtrue"); //but because of the extra . in the sub domain it produces an error.
  7. Need help with php concatenating. $page = array('1','2','3','4','5','6','7','8','9','10','11','12', '13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'); $city = array('ACTON','ADELANTO','AGOURA HILLS','ALAMEDA','ALAMO','ALBANY','ALHAMBRA','ALISO VIEJO'); // the code below invalid...and I can't seem to write it so it will work. Any ideas? //if you can't see the issue...it's because of the ".$city.". I know it should be ".$city." but it's suppose to be a sub-domain and with the //extra dot it gives off an error. $html = file_get_html('http://".$city.".somesite.com/buy-and-sell-Page".$pg."ZZisCitySearchtrue');
  8. Yeah going to have to post some code for help my friend. =)
  9. unknown1

    PHP code help

    Use css. e.g. echo "<img src='images/myimage.png' border='0' width='100' height='100' style='padding:10px;'>"; The above code would give the top, left, right and bottom a 10px padding around the image. Keep in mind your image is now 120 X 120, and not 100 X 100, so you sometimes have to compensate by making the image smaller, or making the image space bigger.
  10. How do I make a program out of the following code. Also what headers are required to make it work.... Do I need to create a dll file and inject to make everything work or can I just run as a regular console app?? Just need someone to explain the code and how to use it.... DWORD dwEngine = (DWORD)GetModuleHandle( "engine.dll" ); DWORD dwClientInit = dwFindPattern( dwEngine, dwClientDLL_Size, reinterpret_cast<PBYTE>(szClientDLL_Sig), szClientDLL_Mask ); LogMessage( "Base: 0x%X || Address: 0x%X || Offset: 0x%X", dwEngine, dwClientInit, dwClientInit - dwEngine ); Thanks!
  11. Okay I get it now i think 0x5BD50000 0x5BF7F4DD - ___________ =0xD2F4DD is this correct?? now how do I make that code work?? show it be a dll file and be injected to work or can I make a console app?? Also how to I make this work?? dwFindPattern( dwEngine, dwClientDLL_Size, reinterpret_cast<PBYTE>(szClientDLL_Sig), szClientDLL_Mask );
  12. yeah I understand how to should work but I don't understand the math i guess. how do you get the offest 0x52290000 - 0x5234CBC0 offest 0xBCBC0 0x52290000 0x5234CBC0 - ______________ 0xBCBC0 how does this work??
  13. base - function??? but I don't understand how to subtract 0x52290000 - 0x5234CBC0 to get 0xBCBC0 can you explain how that works??
  14. To be clear I do understand that DWORD dwEngine = (DWORD)GetModuleHandle( "engine.dll" ); gets the base address of engine.dll and that dwFindPattern(); is to find the pattern to get the function address and that LogMessage( "Base: 0x%X || Address: 0x%X || Offset: 0x%X", dwEngine, dwClientInit, dwClientInit - dwEngine ); is giving me a message showing me the base, address and finally the offset based on dwClientInit - dwEngine. but I don't understand how one would compiling it and make use of it and also how to do the calculation on getting the offset...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.