当前位置:网站首页>Tempest HDMI leak reception 4
Tempest HDMI leak reception 4
2022-07-01 11:06:00 【Lao Shao's open source world】
Next we start to optimize the picture
First of all, I changed the line feed position , It was 463 New line , Almost a line repeats 8 Repeated pictures . I put 463/8 obtain 58.
stay x>=58 Change the line .
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()You can see that there is only one picture left , But the width of the picture narrows , It looks deformed .

At this time, I will interpolate the pixels in each row , Repeat to the right for each pixel 10 All over , You can get the following results :

It can be seen that the screen is enlarged , Basically, the display interface corresponds to 1 A screen leak .
The code of line difference is as follows :
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()But it can be seen from the picture , The whole screen is still tilted , Originally, the white rectangle should be vertical on my leak screen , But now it is inclined from the top right to the bottom left .
This problem can also be solved , You need to save the data of each row separately , Then spell the extra data from the previous line to the beginning of the next line , Or take the data from the beginning of the next line and spell it to the end of the previous line .
The leakage picture of this experiment is like this , For reference :

边栏推荐
- kubernetes之ingress探索实践
- MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性
- CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition
- 内存泄漏定位工具之 valgrind 使用
- 云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
- China's cellular Internet of things users have reached 1.59 billion, and are expected to surpass mobile phone users within this year
- . Net 5.0+ does not need to rely on third-party native implementation of scheduled tasks
- CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾
- “目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
- 使用强大的DBPack处理分布式事务(PHP使用教程)
猜你喜欢

Technology sharing | introduction to linkis parameters

Handling distributed transactions with powerful dbpack (PHP tutorial)

12款大家都在用的产品管理平台

The list of winners of the digital collection of "century master" was announced

NC | intestinal cells and lactic acid bacteria work together to prevent Candida infection

关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法

y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)

Intel Labs annonce de nouveaux progrès en photonique intégrée

Uncover the secrets of new products! Yadi Guanneng 3 multi product matrix to meet the travel needs of global users

Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
随机推荐
基金管理人的内部控制
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
2022年6月编程语言排行,第一名居然是它?!
数据库实验报告(二)
Paxos 入门
力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
华为HMS Core携手超图为三维GIS注入新动能
applyMiddleware 原理
The list of winners of the digital collection of "century master" was announced
Mall applet source code open source version - two open
技术分享 | Linkis参数介绍
Uncover the secrets of new products! Yadi Guanneng 3 multi product matrix to meet the travel needs of global users
12款大家都在用的产品管理平台
[.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
Guys, how to export iceberg data to MySQL? What tools are there? Neither sqoop nor dataX
Get key code
基金管理人的合规管理
Want to open an account, is it safe to open an account of Huatai Securities online?
How does MySQL copy table data from one database to another (two databases are not linked to the same database)
使用强大的DBPack处理分布式事务(PHP使用教程)