Skip to content

Commit 1b7152c

Browse files
committed
Remove useless lines
1 parent 6d1c0f3 commit 1b7152c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

padding_oracle/padding_oracle.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,9 @@ def remove_padding(data: Union[str, bytes]):
3737
return data[:-data[-1]]
3838

3939

40-
def _dummy_oracle(cipher: bytes) -> bool:
41-
raise NotImplementedError('You must implement the oracle function')
42-
43-
4440
def padding_oracle(cipher: bytes,
4541
block_size: int,
46-
oracle: Callable[[bytes], bool] = _dummy_oracle,
42+
oracle: Callable[[bytes], bool],
4743
num_threads: int = 1,
4844
log_level: int = logging.INFO,
4945
null: bytes = b' ') -> bytes:
@@ -55,7 +51,6 @@ def padding_oracle(cipher: bytes,
5551
logger = logging.getLogger('padding_oracle')
5652
logger.setLevel(log_level)
5753
formatter = logging.Formatter('[%(asctime)s][%(levelname)s] %(message)s')
58-
# formatter = logging.Formatter('[%(asctime)s][%(name)s][%(levelname)s] %(message)s')
5954
handler = logging.StreamHandler()
6055
handler.setFormatter(formatter)
6156
logger.addHandler(handler)

0 commit comments

Comments
 (0)