项目介绍

victorqribeiro/bruteforcetv 是一个托管在 GitHub 上的开源项目,目前获得 82 个 Star、9 次 Fork。

仓库全名
victorqribeiro/bruteforcetv
Star 数
82
Fork 数
9

README 摘要

Brute forcing this Hotel's TV Well, I'm staying in this hotel and I'm bored. Let's see if we can brute force the TV, just so we can have something to do. Tools adb scrcpy sure pyautogui Phone - with IR(Infra Red) capabilities. Method What we are going to do is a very simple thing. First we are going to install sure (or any other remote control) app on our phones. It's an app that uses the IR functionality on your…

完整内容见 GitHub 原始 README 或本页 。

常见问题

如何获取 bruteforcetv 的源码?

可以直接克隆仓库:git clone https://github.com/victorqribeiro/bruteforcetv.git,默认分支为 master;安装与运行步骤见仓库 README。

bruteforcetv 最近还在维护吗?

仓库最近一次更新为 2019年11月21日,当前没有未关闭的 Issue;Star 数为 82,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Let's brute force this hotel's tv.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
109
价值分
52
活跃状态
活跃

README

Brute forcing this Hotel’s TV

Well, I’m staying in this hotel and I’m bored. Let’s see if we can brute force the TV, just so we can have something to do.

scrcpy

Tools

adb
scrcpy
sure
pyautogui
Phone - with IR(Infra Red) capabilities.

Method

What we are going to do is a very simple thing.

First we are going to install sure (or any other remote control) app on our phones. It’s an app that uses the IR functionality on your phone to emulate a remote control

Second we are going to access our phone on our laptop using scrcpy and adb (check their tutorial).

Third we are going to run the code bellow, kick back and watch it run.

Code

import time
import pyautogui


dict = {
	'0': (x,y),
	'1': (x,y),
	'2': (x,y),
	'3': (x,y),
	'4': (x,y),
	'5': (x,y),
	'6': (x,y),
	'7': (x,y),
	'8': (x,y),
	'9': (x,y),
}

for i in range(10000): #0 - 9999
	for j in "{:04d}".format(i): #format the number so 0 becomes 0000 - 9999
		pyautogui.click( dict[j] )
		time.sleep(0.1) #click the number and wait a while
	time.sleep(0.3) #cool down time

The code is very simple. Given that we are seeing our phone screen on our laptop, all we need to do is map a number on the remote control to a location on the screen, then just run a pyautogui script to automaticy click on the proper numbers as the attack goes on. First it’s going to click 0000, then 0001, 0002… so on and so forth. Very basic stuff. The (x,y) on the code above means that you should fill in with the x and y coordinates of the buttons on your screen. You can do something more robust, passing the image of the button and having pyautogui searching it for you, but we are doing things quite simple today.

TV

tv

As we can see on the image above, the password for the TV is a 4 digit number. There’s no attempt limit. So click the numbers away until something good happens.

评论

暂无评论