Skip to content

Commit a76c7b0

Browse files
committed
Defer import of optional dependency
1 parent b8fad78 commit a76c7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/commandline/libcdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from __future__ import print_function
55

66
import re
7-
import requests
87
import shutil
98
import sys
109

@@ -138,6 +137,7 @@
138137
common_symbols = ['dup2', 'printf', 'puts', 'read', 'system', 'write']
139138

140139
def find_libc(params):
140+
import requests
141141
url = "https://libc.rip/api/find"
142142
result = requests.post(url, json=params, timeout=20)
143143
log.debug('Request: %s', params)

0 commit comments

Comments
 (0)