Share code curl leech video vui3x đơn giản

By . . . ., 958 View
#TOP
Code này mình chỉ viết tạm bợ dùng cá nhân thôi nhé.
Chức năng:

Tự leech video mới nhất từ vui3x
Tự đăng nhập trang 3x của mình rồi post video đã leech lên

Code dễ dành sử dụng chỉ cần sửa đúng yêu cầu web mình và cron file 5 phút là được nhé.

20 không nói nhiều nữa và đây là code.

<?php
/* code viết bởi Thái123 vui lòng không xoá dòng này để tôn trọng người share */

$web = "http://hot3x.xyz";
$html = file_get_contents($web); ///Lấy
$getlink = explode('href="/watch/',$html);
$getlink1 = explode('">',$getlink[1]);
$url = 'http://hot3x.xyz/watch/'.$getlink1[0].'';
//leech video từ vui3x
$contents = file_get_contents($url); ///Lấy toàn bộ nội dung html của trang đó
$title1 = explode("<title>",$contents); ///Cắt chuỗi
$title = explode("</title>",$title1[1]);
$nd = explode("<body>",$contents);
$ndr = explode("</body>",$nd[1]);
$idvd = explode("https://tube.bz/download/?u=https://www.xvideos.com/embedframe/",$contents);
$idvd1 = explode('"',$idvd[1]);
$anh = explode('<div class="center"><img class="thumb-bv" src="', $contents);
$tags = explode('</ins>
</center></br>
<p>', $contents);
$tags1 = explode('</p>', $tags[1]);
$anh1 = explode('"', $anh[1]);
$tag = explode('rel="tags">', $contents);
$tag1 = explode('</a>', $tag[1]);

//code đăng nhập web
$tk = ""; //tài khoản web cần đăng video
$mk = ""; // mật khẩu
 $curl = curl_init();
 curl_setopt($curl, CURLOPT_URL, 'https://xvideovn.tk/manager/post');
 curl_setopt($curl, CURLOPT_POSTFIELDS, array('user' => $tk, 'pass' => $mk, 'submit' => 'login'));
// gửi dữ liệu từ form
 $thai = curl_exec($curl);
 
 //code đăng video
 $ten = $title[0];
 $thumb = $anh1[0];
 $tl = $tag1[0];
 $idx = $idvd1[0];
 $content = $tags1[0];
 $curl = curl_init();
 curl_setopt($curl, CURLOPT_URL, 'https://xvideovn.tk/manager/post'); // trang post wap mình
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($curl, CURLOPT_COOKIE, 'cookies.txt');
 curl_setopt($curl, CURLOPT_COOKIEFILE, 'cookies.txt');
 curl_setopt($curl, CURLOPT_COOKIEJAR, 'cookies.txt');
 curl_setopt($curl, CURLOPT_POST, 1);
 curl_setopt($curl, CURLOPT_POSTFIELDS, array('ten' => $ten, 'thumb' => $thumb, 'tl' => $tl, 'idx' => $idx, 'content' => $content, 'submit' => 'post'));
// gửi dữ liệu từ form
 $video = curl_exec($curl);
 curl_close($curl);
 echo $video;
?>


Lần đầu share nên mn thông cảm nếu còn sai sót gì nhé
Susimi Cute, Thanh Tam đã thích bài viết này

9 comments:

  1. avatar Yona says:

    Khá hay ::))

  2. avatar Dai says:

    42

  3. avatar Yona says:

    Cơ mà bị fix sớm thôi . Tại ông admin site đó online ở đây :))

  4. avatar . . . . says:

    @Yona fix thì sửa lại chuỗi cắt là được

  5. avatar dat says:

    web ổng chả đc nhiêu view còn leech làm gì32

  6. avatar . . . . says:

    @dat chủ yếu là curl =))

  7. avatar . . . . says:

    2

  8. avatar jkuibap says:

    Giờ tôi ẩn cái tải video đi bên hot3x thì lấy id xvideos đàng trời

  9. avatar Yona says:

    @jkuibap hóng chia sẽ cách ẩn :))