Initial Commit from Space Heroes
This commit is contained in:
commit
359536a0e4
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Include/
|
||||||
|
Lib/
|
||||||
|
pwntools-doc/
|
||||||
|
Scripts/
|
||||||
|
share/
|
||||||
BIN
Space_Heroes/space.pcapng
Normal file
BIN
Space_Heroes/space.pcapng
Normal file
Binary file not shown.
BIN
Space_Heroes/space_frisbee.wav
Normal file
BIN
Space_Heroes/space_frisbee.wav
Normal file
Binary file not shown.
5
pyvenv.cfg
Normal file
5
pyvenv.cfg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
home = C:\Users\Glahera\AppData\Local\Programs\Python\Python312
|
||||||
|
include-system-site-packages = false
|
||||||
|
version = 3.12.3
|
||||||
|
executable = C:\Users\Glahera\AppData\Local\Programs\Python\Python312\python.exe
|
||||||
|
command = C:\Users\Glahera\AppData\Local\Programs\Python\Python312\python.exe -m venv C:\Users\Glahera\Projects\ctf
|
||||||
12
run.py
Normal file
12
run.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import matplotlib.pyplot as plt
|
||||||
|
from scipy import signal
|
||||||
|
from scipy.io import wavfile
|
||||||
|
|
||||||
|
sample_rate, samples = wavfile.read('space_frisbee.wav')
|
||||||
|
frequencies, times, spectrogram = signal.spectrogram(samples, sample_rate)
|
||||||
|
|
||||||
|
plt.pcolormesh(times, frequencies, spectrogram)
|
||||||
|
plt.imshow(spectrogram)
|
||||||
|
plt.ylabel('Frequency [Hz]')
|
||||||
|
plt.xlabel('Time [sec]')
|
||||||
|
plt.show()
|
||||||
Loading…
Reference in New Issue
Block a user