切换屏幕
楼主: Yonsm

[分享] 劫持MLB.TV,打造自己的Apple TV本地媒体浏览器(1.3版支持SRT和连续播放)

  [复制链接]
68主题43帖子94人气

级别: 白苹果

帖子
43
经验
959
精华
人气
94
发表于 2012-11-21 00:14:06 | 显示全部楼层

Re:回 58楼(xiaoxiao001)的帖子

引用第59楼dzjun于2012-11-20 22:38发表的 回 58楼(xiaoxiao001)的帖子 : 你的dns好像没有解析到本地路由器… 貌似openwrt在web里面设置dnsmasq没有用,我的是用ssh登录进去修改hosts文件才成功… .......
我也觉得有问题,但trailers.apple.com是转到180那个ip上了。atv进入了tt的界面,而且电脑上ping trailers.apple.com也显示转到180的ip上了。 请教改hosts文件的话,是改路由器中的hosts吧,请问是在哪个目录下?
19主题71帖子86人气

级别: 红苹果

帖子
71
经验
268
精华
人气
86
发表于 2012-11-21 08:16:47 | 显示全部楼层

回 60楼(xiaoxiao001)的帖子

引用60楼xiaoxiao001于2012-11-21 00:14发表的: {br}我也觉得有问题,但trailers.apple.com是转到180那个ip上了。atv进入了tt的界面,而且电脑上ping trailers.apple.com也显示转到180的ip上了。{br}请教改hosts文件的话,是改路由器中的hosts吧,请问是在哪个目录下?
路由器etc目录下
68主题43帖子94人气

级别: 白苹果

帖子
43
经验
959
精华
人气
94
发表于 2012-11-21 09:18:58 | 显示全部楼层

Re:回 60楼(xiaoxiao001)的帖子

引用第61楼dzjun于2012-11-21 08:16发表的 回 60楼(xiaoxiao001)的帖子 : 路由器etc目录下
多谢,回家试试,格式和普通hosts文件一样吧。10.0.0.0 www.xxx.com
Yonsm
25主题20帖子338人气

级别: 禁止发言

帖子
20
经验
208
精华
人气
338
发表于 2012-11-21 10:08:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
Yonsm
25主题20帖子338人气

级别: 禁止发言

帖子
20
经验
208
精华
人气
338
发表于 2012-11-21 10:11:18 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
Yonsm
25主题20帖子338人气

级别: 禁止发言

帖子
20
经验
208
精华
人气
338
发表于 2012-11-21 10:13:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
Yonsm
25主题20帖子338人气

级别: 禁止发言

帖子
20
经验
208
精华
人气
338
发表于 2012-11-21 10:15:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
1主题14帖子0人气

级别: 小苹果

帖子
14
经验
15
精华
人气
0
发表于 2012-11-21 10:21:29 | 显示全部楼层
引用第66楼Yonsm于2012-11-21 10:15发表的 : 还有提示你另外一个事情,只要你的http /列表下面结构和我的一样,那你不需要修改index.xml的,因为里面我用的url中的hostname就是lws.mlb.com,这个正是你要劫持的,劫持后,这个hostname本身就可以访问的了(在我家lws.mlb.com指向192.168.1.9,在你家,指向你的http服务器,所以通用了)。 .......
请教楼主,我是在路由器openwrt上装的lighttpd,详见下 其中路由器自己的配置界面就占用掉了一个主页,小白不懂怎么在增加一个指向 mnt/sda1/web 目录下的站点 求指教啊,谢谢 # lighttpd configuration file # ## modules to load # all other module should only be loaded if really neccesary # - saves some time # - saves memory server.modules = ( # "mod_rewrite", # "mod_redirect", # "mod_alias", # "mod_auth", # "mod_status", # "mod_setenv", # "mod_fastcgi", # "mod_proxy", # "mod_simple_vhost", "mod_cgi", # "mod_ssi", # "mod_usertrack", # "mod_expire", # "mod_webdav" ) # force use of the "write" backend (closes: #2401) server.network-backend = "write" ## a static document-root, for virtual-hosting ** look at the ## server.virtual-* options server.document-root = "/www/" ## where to send error-messages to #server.errorlog = "/var/log/lighttpd/error.log" ## files to check for if .../ is requested index-file.names = ( "index.html", "default.html", "index.htm", "default.htm" ) ## mimetype mapping mimetype.assign = ( ".pdf" => "application/pdf", ".class" => "application/octet-stream", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".wav" => "audio/x-wav", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".svg" => "image/svg+xml", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", ".js" => "text/javascript", ".txt" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml" ) ## Use the "Content-Type" extended attribute to obtain mime type if possible #mimetypes.use-xattr = "enable" ## send a different Server: header ## be nice and keep it at lighttpd #server.tag = "lighttpd" $HTTP["url"] =~ "\\.pdf$" { server.range-requests = "disable" } ## # which extensions should not be handle via static-file transfer # # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".lua" ) ######### Options that are good to be but not neccesary to be changed ####### ## bind to port (default: 80) #server.port = 81 ## bind to localhost (default: all interfaces) #server.bind = "localhost" ## error-handler for status 404 #server.error-handler-404 = "/error-handler.html" #server.error-handler-404 = "/error-handler.php" ## to help the rc.scripts server.pid-file = "/var/run/lighttpd.pid" ###### virtual hosts ## ## If you want name-based virtual hosting add the next three settings and load ## mod_simple_vhost ## ## document-root = ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or ## virtual-server-root + http-host + virtual-server-docroot ## #simple-vhost.server-root = "/home/weigon/wwwroot/servers/" #simple-vhost.default-host = "grisu.home.kneschke.de" #simple-vhost.document-root = "/pages/" ## ## Format: <errorfile-prefix><status>.html ## -> ..../status-404.html for 'File not found' #server.errorfile-prefix = "/www/error-" ## virtual directory listings #server.dir-listing = "enable" ## send unhandled HTTP-header headers to error-log #debug.dump-unknown-headers = "enable" ### only root can use these options # # chroot() to directory (default: no chroot() ) #server.chroot = "/" ## change uid to <uid> (default: don't care) #server.username = "nobody" # server.upload-dirs = ( "/tmp" ) ## change uid to <uid> (default: don't care) #server.groupname = "nobody" #### compress module #compress.cache-dir = "/dev/null/" #compress.filetype = ("text/plain", "text/html") #### proxy module ## read proxy.txt for more info #proxy.server = ( # ".php" => ( # "localhost" => ( # "host" => "192.168.0.101", # "port" => 80 # ) # ) #) #### fastcgi module ## read fastcgi.txt for more info #fastcgi.server = ( # ".php" => ( # "localhost" => ( # "socket" => "/tmp/php-fastcgi.socket", # "bin-path" => "/usr/local/bin/php" # ) # ) #) #### CGI module #cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" ) #### SSL engine #ssl.engine = "enable" #ssl.pemfile = "server.pem" #### status module #status.status-url = "/server-status" #status.config-url = "/server-config" #### auth module ## read authentification.txt for more info #auth.backend = "plain" #auth.backend.plain.userfile = "lighttpd.user" #auth.backend.plain.groupfile = "lighttpd.group" #auth.require = ( # "/server-status" => ( # "method" => "digest", # "realm" => "download archiv", # "require" => "group=www|user=jan|host=192.168.2.10" # ), # "/server-info" => ( # "method" => "digest", # "realm" => "download archiv", # "require" => "group=www|user=jan|host=192.168.2.10" # ) #) #### url handling modules (rewrite, redirect, access) #url.rewrite = ( "^/$" => "/server-status" ) #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" ) #### both rewrite/redirect support back reference to regex conditional using %n #$HTTP["host"] =~ "^www\\.(.*)" { # url.redirect = ( "^/(.*)" => "http://%1/$1" ) #} #### expire module #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") #### ssi #ssi.extension = ( ".shtml" ) #### setenv #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" ) #setenv.add-response-header = ( "X-Secret-Message" => "42" ) #### variable usage: ## variable name without "." is auto prefixed by "var." and becomes "var.bar" #bar = 1 #var.mystring = "foo" ## integer add #bar += 1 ## string concat, with integer cast as string, result: "www.foo1.com" #server.name = "www." + mystring + var.bar + ".com" ## array merge #index-file.names = (foo + ".php") + index-file.names #index-file.names += (foo + ".php") #### include #include /etc/lighttpd/lighttpd-inc.conf ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf" #include "lighttpd-inc.conf" #### include_shell #include_shell "echo var.a=1" ## the above is same as: #var.a=1 #### webdav #$HTTP["url"] =~ "^/webdav($|/)" { # webdav.activate = "enable" # webdav.is-readonly = "enable" # webdav.sqlite-db-name = "/var/run/lighttpd-webdav-lock.db" #} $HTTP["host"] =~ "^.*$" { server.document-root = "/www/" cgi.assign = ( "luci" => "/usr/bin/lua" ) } #$SERVER["socket"] == ":443" { # ssl.engine = "enable" # ssl.pemfile = "/etc/lighttpd/server.pem" #}
45主题507帖子66人气

级别: 白苹果

帖子
507
经验
551
精华
人气
66
发表于 2012-11-21 10:29:44 | 显示全部楼层
haotiezi 好帖子,mark
68主题43帖子94人气

级别: 白苹果

帖子
43
经验
959
精华
人气
94
发表于 2012-11-21 10:31:15 | 显示全部楼层
引用第66楼Yonsm于2012-11-21 10:15发表的 : 还有提示你另外一个事情,只要你的http /列表下面结构和我的一样,那你不需要修改index.xml的,因为里面我用的url中的hostname就是lws.mlb.com,这个正是你要劫持的,劫持后,这个hostname本身就可以访问的了(在我家lws.mlb.com指向192.168.1.9,在你家,指向你的http服务器,所以通用了)。 .......
多谢楼主耐心解答,可能是我的设置问题,我再回家试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则