Ignore:
Timestamp:
10/13/13 16:58:05 (10 years ago)
Author:
obi
Message:

[titan] tithek fix filenuke

File:
1 edited

Legend:

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

    r24255 r24272  
    77        int debuglevel = getconfigint("debuglevel", NULL);
    88        char* tmphost = NULL, *error = NULL, *tmpfile = NULL, *tmpstr = NULL, *send = NULL, *id = NULL, *fname = NULL, *op = NULL, *hash = NULL, *hashlen = NULL, *ip = NULL;
    9         char* b36code = NULL, *base = NULL, *search = NULL, *post = NULL, *streamlink = NULL, *cmd = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL, *charlist = NULL;
    10 
     9        char* b36code = NULL, *base = NULL, *search = NULL, *post = NULL, *streamlink = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL, *charlist = NULL;
     10//      char* cmd = NULL;
     11       
    1112        if(host == NULL || file == NULL) return NULL;
    1213
     
    6566        send = ostrcat(send, "POST /", 1, 0);
    6667        send = ostrcat(send, id, 1, 0);
    67         send = ostrcat(send, " HTTP/1.1\r\nContent-Length: ", 1, 0);
     68        send = ostrcat(send, " HTTP/1.0\r\nContent-Length: ", 1, 0);
    6869        send = ostrcat(send, hashlen, 1, 0);
    6970        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);
     
    7475
    7576        sleep(5);
    76 
     77/*
    7778        //send and receive answer
    7879        post = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0);
    7980        titheklog(debuglevel, "/tmp/filenuke2_tmpstr_post1", NULL, post);
    80 //
    81         gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/post", NULL, NULL, 0, send, NULL, 5000, 0);
     81
    8282        cmd = ostrcat("cat /tmp/tithek/post | zcat", NULL, 0, 0);
    8383        debug(99, "cmd: %s", cmd);
     
    8585        writesys("/tmp/filenuke2_post1", post, 0);
    8686        free(cmd); cmd = NULL;
    87 //
     87*/
     88// new start
     89// working with
     90// KinoX_Star.Wars.The.Clone.Wars_1.(de)_Staffel.4.Folge.19_FileNuke.com.mp4
     91// http://filenuke.com/3gop8ac00z3v;3gop8ac00z3v;FileNuke.com
     92        post = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0);
     93        debug(99, "post: %s", post);
     94// new end
     95
    8896        free(tmpstr),tmpstr = NULL;
    8997        tmpstr = string_resub(";return p}('", ");'", post, 0);
Note: See TracChangeset for help on using the changeset viewer.