Jump to content

unknown1

Members
  • Posts

    128
  • Joined

  • Last visited

Posts posted by unknown1

  1. 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. 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

  3. But Thanks!! I thought I tried it like

    $html = file_get_html("http://".$city.".somesite.com/buy-and-sell-Page".$pg."ZZisCitySearchtrue");

    already...

     

    $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.
     
    

  4. try this one

    $html = file_get_html("http://".$city."somesite.com/buy-and-sell-Page".$pg."ZZisCitySearchtrue");
    

    yu don't need single innerted comma to concat.. Use " " this instead...

     

    If u use ' '  then it echo out as it is without evaluating the php code...

     

    Comment if u need any help...

     

     

    $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.
     
    

  5. 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');
     
     
    

  6. 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.

     

     

  7. 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 );

     

    If i compile it now it doesn't work so what do I need to do to make it functional????

     

    Thanks!

  8. 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!

  9. 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 );

  10. What do you mean you don't know how you get that offset? You just said you know it's base - function. Which it is.

     

    And compile what?

     

     

    base - function??? but I don't understand how to subtract  0x52290000 - 0x5234CBC0  to get  0xBCBC0

    can you explain how that works??

  11. 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...

  12. 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 );

     

     

    C++

    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;
    
    }

    C++

    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;
    }
    }

  13. 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.

  14. run the commands in terminal first.  if they work in terminal then they will work with shell_exec()

     

    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??

  15. 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!!";
    ?>
    
    

×
×
  • 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.