Changeset 24314


Ignore:
Timestamp:
10/14/13 20:34:45 (9 years ago)
Author:
obi
Message:

fix

Location:
titan/plugins/tithek
Files:
3 edited

Legend:

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

    r24313 r24314  
    1111       
    1212        if(host == NULL || file == NULL) return NULL;
     13
     14        unlink("/tmp/filenuke1_get");
     15        unlink("/tmp/filenuke2_post");
     16        unlink("/tmp/filenuke3_tmpstr1");
     17        unlink("/tmp/filenuke4_post2");
     18        unlink("/tmp/filenuke5_tmpstr2");
     19        unlink("/tmp/filenuke6_b36code2");
     20        unlink("/tmp/filenuke7_tmpstr_last");
     21        unlink("/tmp/filenuke8_streamlink");
    1322
    1423        tmphost = ostrcat("www.", host, 0, 0);
     
    95104        send = ostrcat(send, hashlen, 1, 0);
    96105        send = ostrcat(send, "\r\nAccept-Encoding: gzip\r\nConnection: close\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nHost: ", 1, 0);
    97         send = ostrcat(send, host, 1, 0);
     106        send = ostrcat(send, tmphost, 1, 0);
    98107        send = ostrcat(send, "\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n", 1, 0);
    99108        send = ostrcat(send, hash, 1, 0);
  • titan/plugins/tithek/nowvideo.h

    r24311 r24314  
    1919        unlink("/tmp/nowvideo2_get");
    2020
    21         tmphost = ostrcat(tmphost, host, 1, 0);
     21        tmphost = ostrcat(host, NULL, 0, 0);
    2222        tmpfile = ostrcat("/video/", file, 0, 0);
    2323       
     
    2727        debug(99, "tmpfile: %s", tmpfile);
    2828
    29         send = ostrcat(send, "GET /video/", 1, 0);
    30         send = ostrcat(send, file, 1, 0);
     29        send = ostrcat(send, "GET ", 1, 0);
     30        send = ostrcat(send, tmpfile, 1, 0);
    3131        send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0);
    32         send = ostrcat(send, host, 1, 0);
     32        send = ostrcat(send, tmphost, 1, 0);
    3333        send = ostrcat(send, "\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n", 1, 0);
    3434        debug(99, "send: %s", send);
     
    6666        send = ostrcat(send, tmpfile, 1, 0);
    6767        send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0);
    68         send = ostrcat(send, host, 1, 0);
     68        send = ostrcat(send, tmphost, 1, 0);
    6969        send = ostrcat(send, "\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n", 1, 0);
    7070        debug(99, "send: %s", send);
  • titan/plugins/tithek/vidstream.h

    r24251 r24314  
    2525        if(host == NULL || file == NULL) return NULL;
    2626
    27         tmphost = ostrcat("www.", host, 0, 0);
    28         tmpfile = ostrcat("/file/", file, 0, 0);
     27        unlink("/tmp/vidstream1_get");
     28        unlink("/tmp/vidstream2_post");
     29        unlink("/tmp/vidstream3_streamlink");
     30
     31        tmphost = ostrcat(host, NULL, 0, 0);
     32        tmpfile = ostrcat("/", file, 0, 0);
     33        ip = get_ip(tmphost);
     34        debug(99, "tmpfile: %s", tmpfile);
    2935        debug(99, "tmphost: %s", tmphost);
    30         ip = get_ip(tmphost);
    3136        debug(99, "ip: %s", ip);
    32         debug(99, "tmpfile: %s", tmpfile);
    33         debug(99, "file: %s", file);
    3437
    35         send = ostrcat(send, "GET /", 1, 0);
    36         send = ostrcat(send, file, 1, 0);
     38        send = ostrcat(send, "GET ", 1, 0);
     39        send = ostrcat(send, tmpfile, 1, 0);
    3740        send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0);     
    38         send = ostrcat(send, host, 1, 0);
     41        send = ostrcat(send, tmphost, 1, 0);
    3942        send = ostrcat(send, "\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n", 1, 0);       
    40         debug(99, "tmphost: %s", tmphost);
    41         debug(99, "tmpfile: %s", tmpfile);
    4243        debug(99, "send: %s", send);
    4344        tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
    44 
    45         titheklog(debuglevel, "/tmp/vidstream1_tmpstr", NULL, tmpstr);
     45        debug(99, "tmpstr: %s", tmpstr);
     46        titheklog(debuglevel, "/tmp/vidstream1_get", NULL, tmpstr);
    4647
    4748        sleep(1);
     
    108109        free(send), send = NULL;
    109110
    110         send = ostrcat(send, "POST /", 1, 0);
    111         send = ostrcat(send, file, 1, 0);
     111        send = ostrcat(send, "POST ", 1, 0);
     112        send = ostrcat(send, tmpfile, 1, 0);
    112113        send = ostrcat(send, " HTTP/1.1\r\nContent-Length: ", 1, 0);
    113114        send = ostrcat(send, hashlen, 1, 0);
    114115        send = ostrcat(send, "\r\nAccept-Encoding: gzip\r\nConnection: close\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nHost: ", 1, 0);
    115         send = ostrcat(send, host, 1, 0);
     116        send = ostrcat(send, tmphost, 1, 0);
    116117        send = ostrcat(send, "\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n", 1, 0);
    117118        send = ostrcat(send, hash, 1, 0);
    118119        debug(99, "send: %s", send);
    119120
    120         free(tmpstr), tmpstr = NULL;
    121121        tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
    122        
    123         titheklog(debuglevel, "/tmp/vidstream2_tmpstr_post", NULL, tmpstr);
     122        debug(99, "tmpstr: %s", tmpstr);       
     123        titheklog(debuglevel, "/tmp/vidstream2_post", NULL, tmpstr);
    124124
    125125        sleep(1);
Note: See TracChangeset for help on using the changeset viewer.