当前位置:网站首页>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 :
边栏推荐
- 商汤进入解禁期:核心管理层自愿禁售 强化公司长期价值信心
- Valgrind usage of memory leak locating tool
- [.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
- Applymiddleware principle
- Valgrind usage of memory leak locating tool
- Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
- Global filter (processing time format)
- 金鱼哥RHCA回忆录:DO447使用Ansible与API通信--使用Ansible Tower API启动作业
- BAIC bluevale: performance under pressure, extremely difficult period
- Oracle和JSON的结合
猜你喜欢
价值1000毕业设计校园信息发布平台网站源码
NC | intestinal cells and lactic acid bacteria work together to prevent Candida infection
Database experiment report (II)
[paper reading] trajectory guided control prediction for end to end autonomous driving: a simple yet strong Ba
CPI教程-异步接口创建及使用
CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾
谷歌新论文-Minerva:用语言模型解决定量推理问题
[MPC] ① quadratic programming problem matlab solver quadprog
我国蜂窝物联网用户已达 15.9 亿,年内有望超越移动电话用户
华为设备配置大型网络WLAN基本业务
随机推荐
The list of winners of the digital collection of "century master" was announced
力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
mysql如何把 一个数据库中的表数据 复制到 另一个数据库中(两个数据库不在同一个数据库链接下)
移动硬盘驱动器读到,但不显示盘符
NC | intestinal cells and lactic acid bacteria work together to prevent Candida infection
Rising Stars in Plant Sciences (RSPS2022) Finalist科学演讲会(6.30晚9点)
技术分享 | Linkis参数介绍
Mobile hard drive reads but does not display drive letter
Global filter (processing time format)
编译调试Net6源码
内存泄漏定位工具之 valgrind 使用
12款大家都在用的产品管理平台
“目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
转义字符串
基金管理人的合规管理
Huawei equipment is configured with large network WLAN basic services
NeurIPS 2022 | 细胞图像分割竞赛正式启动!
. Net 5.0+ does not need to rely on third-party native implementation of scheduled tasks
达梦数据冲刺科创板:拟募资24亿 冯裕才曾为华科教授
《数据安全法》出台一周年,看哪四大变化来袭?