Ignore:
Timestamp:
10/14/13 20:06:35 (10 years ago)
Author:
obi
Message:

tithek update filenuke

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/filenuke.h

    r24297 r24313  
    3333        tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
    3434        free(send), send = NULL;
    35 
    36         debug(99, "write file");
    37         sleep(2);
    38         titheklog(debuglevel, "/tmp/filenuke1_tmpstr", NULL, tmpstr);
     35        debug(99, "tmpstr: %s", tmpstr);
     36        titheklog(debuglevel, "/tmp/filenuke1_get", NULL, tmpstr);
     37
     38//      sleep(2);
    3939
    4040        if(ostrstr(tmpstr, "<title>The page is temporarily unavailable</title>") != NULL)
     
    100100        debug(99, "send: %s", send);
    101101
    102         sleep(5);
    103 /*
    104         //send and receive answer
     102//      sleep(5);
     103       
    105104        post = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0);
    106         titheklog(debuglevel, "/tmp/filenuke2_tmpstr_post1", NULL, post);
    107 
    108         cmd = ostrcat("cat /tmp/tithek/post | zcat", NULL, 0, 0);
    109         debug(99, "cmd: %s", cmd);
    110         post = command(cmd);
    111         writesys("/tmp/filenuke2_post1", post, 0);
    112         free(cmd); cmd = NULL;
    113 */
    114 // new start
    115 // working with
    116 // KinoX_Star.Wars.The.Clone.Wars_1.(de)_Staffel.4.Folge.19_FileNuke.com.mp4
    117 // http://filenuke.com/3gop8ac00z3v;3gop8ac00z3v;FileNuke.com
    118         post = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0);
    119 
     105        free(send), send = NULL;
    120106        debug(99, "post: %s", post);
    121 // new end
     107        titheklog(debuglevel, "/tmp/filenuke2_post", NULL, tmpstr);
    122108
    123109        free(tmpstr),tmpstr = NULL;
    124110        tmpstr = string_resub(";return p}('", ");'", post, 0);
     111        debug(99, "tmpstr: %s", tmpstr);
    125112        titheklog(debuglevel, "/tmp/filenuke3_tmpstr1", NULL, tmpstr);
    126113       
    127114        post = string_replace_all(tmpstr, "", post, 1);
    128115        post = string_replace_all(";return p}(');'", "", post, 1);
     116        debug(99, "post: %s", post);
    129117        titheklog(debuglevel, "/tmp/filenuke4_post2", NULL, post);
    130118
     
    132120        free(b36code),b36code = NULL;
    133121        tmpstr = string_resub(";return p}('", ");'", post, 0);
     122        debug(99, "tmpstr: %s", tmpstr);
    134123        titheklog(debuglevel, "/tmp/filenuke5_tmpstr2", NULL, tmpstr);
    135124
     
    137126       
    138127        b36code = string_replace_all("||", "| |", b36code, 1);
     128        debug(99, "b36code: %s", b36code);
    139129        titheklog(debuglevel, "/tmp/filenuke6_b36code2", NULL, b36code);
    140130       
Note: See TracChangeset for help on using the changeset viewer.