当前位置:网站首页>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个像素点扩展为上下左右好几个像素点就行。
后面我会找时间慢慢优化。
下面是两幅实景照片,你可以比较两个电脑屏幕的关系。我的操作是在移动泄露电脑屏幕右侧的白色文本输入界面。


边栏推荐
- Personal mall two open Xiaoyao B2C mall system source code - Commercial Version / group shopping discount seckill source code
- 【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
- Handling distributed transactions with powerful dbpack (PHP tutorial)
- node版本管理器nvm安装及切换
- Mall applet source code open source version - two open
- 放弃深圳高薪工作回老家
- Ask everyone in the group about the fact that the logminer scheme of flick Oracle CDC has been used to run stably in production
- Error: missing revert data in call exception
- 内存泄漏定位工具之 valgrind 使用
- Whether lending a bank card to others constitutes a crime
猜你喜欢

软件项目管理 9.2.软件项目配置管理过程

华为设备配置大型网络WLAN基本业务

PHP有哪些优势和劣势

LeetCode.515. 在每个树行中找最大值___逐一BFS+DFS+按层BFS

Yoda unified data application -- Exploration and practice of fusion computing in ant risk scenarios

Database experiment report (I)

Matplotlib data visualization Foundation
![[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >](/img/62/562e93e66addc8e86c0a19bc514389.png)
[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >

The project bar on the left side of CodeBlocks disappears, workspace automatically saves the project, default workspace, open the last workspace, workspace (Graphic tutorial, solved)
![[.net6] use ml.net+onnx pre training model to liven the classic](/img/b3/b117481fba7257453011e4cdb1eaaa.png)
[.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
随机推荐
【MAUI】为 Label、Image 等控件添加点击事件
使用强大的DBPack处理分布式事务(PHP使用教程)
Google's new paper Minerva: solving quantitative reasoning problems with language models
2022年6月编程语言排行,第一名居然是它?!
Get key code
BAIC bluevale: performance under pressure, extremely difficult period
Mutual conversion of pictures in fluent uint8list format and pictures in file format
华泰证券网上开户安全吗?
JS基础--数据类型
放弃深圳高薪工作回老家
The idea runs with an error command line is too long Shorten command line for...
CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
"Target detection" + "visual understanding" to realize the understanding and translation of the input image (with source code)
Packet mode and three streaming modes in SDP protocol
Cvpr22 | CMT: efficient combination of CNN and transformer (open source)
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
The project bar on the left side of CodeBlocks disappears, workspace automatically saves the project, default workspace, open the last workspace, workspace (Graphic tutorial, solved)
基金国际化的发展概况
[.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
Matplotlib data visualization Foundation