Wesman help!!!

Results 1 to 6 of 6
  1. #1
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Wesman help!!!

    Dude wesman i alreaddy pmed u in MSN about clan emblem uploader..... im getting errors.. plzz reply... HELP!!
    ERROR=cannot redeclare wtitetologfile in sec.php... FTW!! 5th post....


  2. #2
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Wesman help!!!

    idk mine has no error so here's my upload folder.
    EDIT : Thanks Donald :P
    Attached Files Attached Files

  3. #3
    Member Donald Duck is offline
    MemberRank
    Jun 2009 Join Date
    USA.Location
    95Posts

    Re: Wesman help!!!

    Simply remove the second function writetologfile().

    Stop stalking btw, he's trying to help you so there is no need for such emotions.

  4. #4
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Re: Wesman help!!!

    it isnt working wesman
    @ donald.. can u just fix and upload???
    and btw is there any thing do do with DB first??? cuz in clan server... there shows nothing but just a black box..
    i mean even NO EMBLEM doesnt show up... and soz for emotions.. was pissed soo much

  5. #5
    Enthusiast Goldoracko is offline
    MemberRank
    Apr 2009 Join Date
    CanadaLocation
    44Posts

    Re: Wesman help!!!

    Here wee go.
    Be sure to have a folder called logs in your upload folder where you can see index.php / sec.php / upload.php etc etc

    Now here wee go for the php.ini / because its need a default timezone too work

    In php.ini press ctfl+f than shearch :
    ;date.timezone =
    And replace it by
    date.timezone = Etc/GMT-5

    You can change the -5 to your default gmt

    This is the sec.php / logs fonction.

    Code:
    function writeToLogFile($msg)
    {
    //     $today = date("M j G:i:s Y"); 
         $today = date("Y_m_d"); 
         $logfile = "./logs/".$today."_log_SQL INJECTIONS.txt"; 
         $dir = '';
         $saveLocation=$logfile;
         $fp = @fopen( $saveLocation,"r");
         $Data = @fread($fp, 800000);
    
         if (!$handle = @fopen($saveLocation, "w+b"))
        {
         echo "error";
              exit;
         }
         else
         {
              if(@fwrite($handle,"$msg\r\n SQL Injection detected\r\n$Data")===FALSE) 
              {
                   echo "geen error";
                   exit;
              }
                @fclose($handle);
         }
    }
    After thats try to sql inject.
    It will do logs like.

    Code:
    IP: 192.168.0.199 TIME: Jun 27 1:19:51 2009 REFERRER: http://192.168.0.199/SaphireCommunity/SaphireGunZ/index.php?do=userpanel SEARCHSTRING: step=2
     SQL Injection detected
    IP: 192.168.0.199 TIME: Jun 27 1:19:43 2009 REFERRER: http://192.168.0.199/SaphireCommunity/SaphireGunZ/index.php?do=userpanel SEARCHSTRING: step=2
     SQL Injection detected
    If you dont have clan emblem changer.
    You can download it
    Simple database fix

  6. #6
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Re: Wesman help!!!

    ahhhh not working... help me.. plzz gimme a working emblem uploader....



Advertisement