Changeset 24272 for titan/plugins/tithek/filenuke.h
- Timestamp:
- 10/13/13 16:58:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/filenuke.h
r24255 r24272 7 7 int debuglevel = getconfigint("debuglevel", NULL); 8 8 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 11 12 if(host == NULL || file == NULL) return NULL; 12 13 … … 65 66 send = ostrcat(send, "POST /", 1, 0); 66 67 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); 68 69 send = ostrcat(send, hashlen, 1, 0); 69 70 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); … … 74 75 75 76 sleep(5); 76 77 /* 77 78 //send and receive answer 78 79 post = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0); 79 80 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 82 82 cmd = ostrcat("cat /tmp/tithek/post | zcat", NULL, 0, 0); 83 83 debug(99, "cmd: %s", cmd); … … 85 85 writesys("/tmp/filenuke2_post1", post, 0); 86 86 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 88 96 free(tmpstr),tmpstr = NULL; 89 97 tmpstr = string_resub(";return p}('", ");'", post, 0);
Note: See TracChangeset
for help on using the changeset viewer.