当前位置:网站首页>TEMPEST HDMI泄漏接收 4
TEMPEST HDMI泄漏接收 4
2022-07-01 11:05:00 【老邵的开源世界】
接下来我们开始优化画面
首先我改了换行位置,原本是463才换行,差不多一行重复出现8个重复画面。我把463/8得到58。
在x>=58时换行。
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((600,600,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 >= 58):
x = 0
y = y + 1
if (y >= 500):
y = 0
cv2.imshow("HDMI", img)
if(cv2.waitKey(10)==27):
break
sdr.close()可以看到只剩一个画面了,但是画面宽度变窄,显得变形了。

这时候我再对每行的像素点插值,大概每个像素点重复往右画10遍,就可以得到如下效果:

可以看出现在画面放大了,基本上显示界面就对应了1个屏幕的泄漏画面。
行差值的代码如下:
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((600,600,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
img[y, x + 1] = value
img[y, x + 2] = value
img[y, x + 3] = value
img[y, x + 4] = value
img[y, x + 5] = value
img[y, x + 6] = value
img[y, x + 7] = value
img[y, x + 8] = value
img[y, x + 9] = value
x = x + 10
if (x >= 580):
x = 0
y = y + 1
if (y >= 500):
y = 0
cv2.imshow("HDMI", img)
if(cv2.waitKey(10)==27):
break
sdr.close()但是从画面看出来,整个屏幕还是斜的,本来白色矩形在我泄漏屏幕上应该垂直,但是现在是从右上往左下角倾斜的。
这个问题也可以解决,需要把每一行的数据单独存下来,然后上一行多出来的数据拼到下一行开头,或者从下一行开头取数据拼给上一行结尾。
本次实验泄漏画面是这样的,留作参考:

边栏推荐
- Submission lottery - light application server essay solicitation activity (may) award announcement
- Ten years of sharpening a sword: unveiling the secrets of ant group's observability platform antmonitor
- Crawler (2) - requests (1) | deep parsing of requests module
- What are the advantages and disadvantages of PHP
- CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
- Export and import of incluxdb on WIN platform
- NC | intestinal cells and lactic acid bacteria work together to prevent Candida infection
- [.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
- Development overview of fund internationalization
- flutter Uint8List格式的图片和File格式图片的互相转换
猜你喜欢

applyMiddleware 原理

Sqlachemy common operations

CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾

Half of 2022 has passed, isn't it sudden?

CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition

Detailed explanation of linear regression in machine learning
![[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》](/img/b3/b117481fba7257453011e4cdb1eaaa.png)
[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》

LeetCode. 515. Find the maximum value in each tree row___ BFS + DFS + BFS by layer

The idea runs with an error command line is too long Shorten command line for...
![[encounter Django] - (II) database configuration](/img/23/aed472757f7e238a146b043c0405d7.png)
[encounter Django] - (II) database configuration
随机推荐
京东与腾讯续签合作:向腾讯发行A类股 价值最高达2.2亿美元
MIT's latest paper, "the need for interpretable features: motivation and classification": building interpretability in the constituent elements of machine learning models
Detailed explanation of linear regression in machine learning
CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾
. Net 5.0+ does not need to rely on third-party native implementation of scheduled tasks
网站源码整站下载 网站模板源代码下载
Graduation season · advanced technology er
Guys, how to export iceberg data to MySQL? What tools are there? Neither sqoop nor dataX
使用强大的DBPack处理分布式事务(PHP使用教程)
力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
[.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
What are the advantages and disadvantages of PHP
12 product management platforms that everyone is using
[MPC] ① quadratic programming problem matlab solver quadprog
LeetCode 438. 找到字符串中所有字母异位词__滑动窗口
技术分享 | Linkis参数介绍
The exclusive collection of China lunar exploration project is limited to sale!
移动硬盘驱动器读到,但不显示盘符
《数据安全法》出台一周年,看哪四大变化来袭?