Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by unknown1

  1. unknown1


    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...
  15. I wanted to see if someone could help me understand the following code and what I have to do to get it to work... like what header files you need and should somthing like this be an injected dll or can it be ran in a console app... also how to get a offset from a base/function address. I know it's base address - function address but when the address is like Base : 0x52290000 || Address : 0x5234CBC0 || Offset : 0xBCBC0 I dont understand how you get 0xBCBC0 as the offset. Thanks in advance!! 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 );
  16. unknown1


    Okay, don't need the help anymore but thanks anyways. in case someone else is just learning c++ and wants an example.... here is the code I wrote. #include <iostream> #include <windows.h> #include <stdlib.h> using namespace std; class player { public: int health, skill; void increaseHealth() { health++; } void decreaseHealth() { health--; } void attack() { char key; if(cin.get()){ decreaseHealth(); } } }; int main() { player a; cout << "Hit enter key to attack. \n"; for (a.health=100; a.health >0; ){ a.attack(); cout << "You have attacked player a \n" << "\n Health remaining:" << a.health << endl; cout << "\n"; cout << "Hit ctrl x to exit or enter to attack again. \n"; } char f; cin >> f; return 0; }
  17. unknown1


    Hello, just starting to learn c++ but am still a noob... Wrote a small program and doesn't work at all and was hoping someone could tell me why? Thanks in advance! #include <iostream> #include <windows.h> #define VK_OEM_PLUS 0xBB using namespace std; class player { public: int health; void decreaseHealth() { if(GetAsyncKeyState(VK_OEM_PLUS)){health--;} } }; int main() { player a; a.health = 100; while (a.health >0){ cout << "Hit the plus key to attack \n"; a.decreaseHealth(); cout << a.health; char f; cin >> f; return 0; } }
  18. Hello All. I'm looking for a mysql database with all the cities, states/provinces and countries of the world. I did a google search but didn't have much luck...so thought id try here in hopes that someone has one I can use or knows a place to get one. Thanks in advance.
  19. Hello All. Anyone know of or have a world mysql database I can use. I need one that includes all the countries, states/provinces and cities.
  20. Okay but the script produces a screen shot and works fine from terminal and doesn't produce the screen shot when I run it from shell_exec(). Any ideas of why this maybe??
  21. This is my current script, does anyone have any ideas of why this won't work?? Take note it runs fine from command line and produces the results needed but doesn't work from script. Thanks in advance!! <?php $script1 = "Xvfb :2 -screen 0 1024x768x24&"; $script2 = "export DISPLAY=localhost:2.0"; $script3 = "khtml2png2 --sw 100 --sh 100 http://www.ask.com ask.png"; $connection = ssh2_connect('server.xxxxxxxxxxx.com', 22); ssh2_auth_password($connection, 'root', 'xxxxxxxxxxxx'); $stream = ssh2_exec($connection, $script1); sleep(10); $stream = ssh2_exec($connection, $script2); $stream = ssh2_exec($connection, $script3); sleep(5); fclose($stream); echo "All done!!"; ?>
  22. Yes, I have installed them. Just not sure if I can execute just exec() with login or do I need something like licssh2 and a login script or can I just execute the commands...
  23. Hello, Just wanted to see if someone could tell me how to execute shell commands via php I tired with exec() and shell_exec() but it doesn't execute anything? Can someone who is familiar with this explain how this works and why it won't work when I tried. Here is an example of what I'm trying to execute. e.g. echo shell_exec('Xvfb :2 -screen 0 1024x768x24&'); echo shell_exec('export DISPLAY=localhost:2.0'); echo shell_exec('khtml2png2 --sw 100 --sh 100 http://www.example.com example.png'); Thanks in advance!!
  • 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.