Changeset 24314
- Timestamp:
- 10/14/13 20:34:45 (9 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/filenuke.h
r24313 r24314 11 11 12 12 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"); 13 22 14 23 tmphost = ostrcat("www.", host, 0, 0); … … 95 104 send = ostrcat(send, hashlen, 1, 0); 96 105 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); 98 107 send = ostrcat(send, "\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n", 1, 0); 99 108 send = ostrcat(send, hash, 1, 0); -
titan/plugins/tithek/nowvideo.h
r24311 r24314 19 19 unlink("/tmp/nowvideo2_get"); 20 20 21 tmphost = ostrcat( tmphost, host, 1, 0);21 tmphost = ostrcat(host, NULL, 0, 0); 22 22 tmpfile = ostrcat("/video/", file, 0, 0); 23 23 … … 27 27 debug(99, "tmpfile: %s", tmpfile); 28 28 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); 31 31 send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0); 32 send = ostrcat(send, host, 1, 0);32 send = ostrcat(send, tmphost, 1, 0); 33 33 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); 34 34 debug(99, "send: %s", send); … … 66 66 send = ostrcat(send, tmpfile, 1, 0); 67 67 send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0); 68 send = ostrcat(send, host, 1, 0);68 send = ostrcat(send, tmphost, 1, 0); 69 69 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); 70 70 debug(99, "send: %s", send); -
titan/plugins/tithek/vidstream.h
r24251 r24314 25 25 if(host == NULL || file == NULL) return NULL; 26 26 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); 29 35 debug(99, "tmphost: %s", tmphost); 30 ip = get_ip(tmphost);31 36 debug(99, "ip: %s", ip); 32 debug(99, "tmpfile: %s", tmpfile);33 debug(99, "file: %s", file);34 37 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); 37 40 send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0); 38 send = ostrcat(send, host, 1, 0);41 send = ostrcat(send, tmphost, 1, 0); 39 42 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);42 43 debug(99, "send: %s", send); 43 44 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); 46 47 47 48 sleep(1); … … 108 109 free(send), send = NULL; 109 110 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); 112 113 send = ostrcat(send, " HTTP/1.1\r\nContent-Length: ", 1, 0); 113 114 send = ostrcat(send, hashlen, 1, 0); 114 115 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); 116 117 send = ostrcat(send, "\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n", 1, 0); 117 118 send = ostrcat(send, hash, 1, 0); 118 119 debug(99, "send: %s", send); 119 120 120 free(tmpstr), tmpstr = NULL;121 121 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); 124 124 125 125 sleep(1);
Note: See TracChangeset
for help on using the changeset viewer.