当前位置:网站首页>TEMPEST HDMI泄漏接收 3
TEMPEST HDMI泄漏接收 3
2022-07-01 11:05:00 【老邵的开源世界】
第一篇文章我本打算用python写代码并使用rtlsdr来接收,这样不但代码简洁好懂,而且设备也非常便宜,很好入门。但是第二篇文章我为了尽早实现效果还是采用了c++语言和hackrf。可能会对入门者不太友好,所以这两天我继续做python+rtlsdr的版本。现在已经初有成效了
from pylab import *
from rtlsdr import *
import cv2
sdr = RtlSdr()
# configure device
sdr.sample_rate = 1.951047e6
sdr.center_freq = 395.991e6
sdr.gain = 60
# init for opencv
x = 0
y = 0
img=np.zeros((512,512,1), np.uint8)
while True:
samples = sdr.read_samples(1024*100) #type(sample) is numpy.complex128
for sample in samples:
mag = np.sqrt( sample.imag * sample.imag + sample.real * sample.real)
value = mag * 255 * 10
img[y, x] = value
x = x + 1
if (x >= 463):
x = 0
y = y + 1
if (y >= 500):
y = 0
cv2.imshow("HDMI", img)
if(cv2.waitKey(10)==27):
break
sdr.close()以上是我的代码,一共才30多行,十分简洁。可以用python2.7运行。
当rtlsdr在hdmi线缆附近时,效果如下:

这是泄漏电脑的桌面:

可以看得出他们是比较呼应的——总体界面都是黑色,上面都有一条白色横条,然后左边有一条垂直白色矩形,右边还有一个小的白色矩形。
但是目前还有两个问题
1.解出来的图像有一点倾斜(这个问题可以通过调整换行位置463改善,但是由于换行位置必须整形数,所以精度有限)
2.窗口中重复出现了很多个比较小的画面,最好把画面放大一些,没必要那么看到那么多重复画面,这个也好解决,只需要在图像绘制阶段把1个像素点扩展为上下左右好几个像素点就行。
后面我会找时间慢慢优化。
下面是两幅实景照片,你可以比较两个电脑屏幕的关系。我的操作是在移动泄露电脑屏幕右侧的白色文本输入界面。


边栏推荐
- China's cellular Internet of things users have reached 1.59 billion, and are expected to surpass mobile phone users within this year
- The first anniversary of the data security law, which four major changes are coming?
- sdp 协议中的packetization-mode方式和三种流传输模式
- 名创拟7月13日上市:最高发行价22.1港元 单季净利下降19%
- 内存泄漏定位工具之 valgrind 使用
- Handling distributed transactions with powerful dbpack (PHP tutorial)
- Prism journal navigation button usability exploration record
- How to get the maximum value of column two and regenerate the table when the SQL Server column one is the same
- 【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
- The exclusive collection of China lunar exploration project is limited to sale!
猜你喜欢

编译调试Net6源码

Matplotlib data visualization Foundation

MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性

applyMiddleware 原理

【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>

Intel Labs announces new progress in integrated photonics research

Google's new paper Minerva: solving quantitative reasoning problems with language models

The idea runs with an error command line is too long Shorten command line for...

Node version manager NVM installation and switching

BAIC bluevale: performance under pressure, extremely difficult period
随机推荐
Addition, deletion, modification and query of database
Mall applet source code open source version - two open
云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
Want to open an account, is it safe to open an account of Huatai Securities online?
y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)
[paper reading] trajectory guided control prediction for end to end autonomous driving: a simple yet strong Ba
内存泄漏定位工具之 valgrind 使用
MIT's latest paper, "the need for interpretable features: motivation and classification": building interpretability in the constituent elements of machine learning models
Paxos 入门
LeetCode. One question of the day: offer II 091 Paint the house (DP problem)
Oracle和JSON的结合
[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
Website source code whole site download website template source code download
谷歌新论文-Minerva:用语言模型解决定量推理问题
想开个户,在网上开华泰证券的户安全吗?
我国蜂窝物联网用户已达 15.9 亿,年内有望超越移动电话用户
数据库实验报告(二)
In June 2022, it was the first programming language?!
Google's new paper Minerva: solving quantitative reasoning problems with language models
金融壹账通拟7月4日香港上市:2年亏近30亿 市值蒸发超90%