本リポジトリはオライリー・ジャパン発行書籍『サイバーセキュリティプログラミング 第2版』のサポートサイトです。
フォルダ名 | 説明 |
---|---|
appendix-A | 付録Aで使用するソースコード |
... | ... |
chapter-01 | 1章で使用するソースコード |
chapter-02 | 2章で使用するソースコード |
... | ... |
chapter-11 | 11章で使用するソースコード |
サンプルコードの解説は本書籍をご覧ください。
下記の誤りがありました。お詫びして訂正いたします。
本ページに掲載されていない誤植など間違いを見つけた方は、[email protected]までお知らせください。
誤
else:
sites = list()
if response.get('webPages'):
sites = response['webPages']['value']
if len(sites):
for site in sites:
print('*'*100) # ❺
print('Name: %s ' % site['name'])
print('URL: %s ' % site['url'])
print('Description: %r' % site['snippet'])
print('*'*100)
java_url = URL(site['url'])
if not self._callbacks.isInScope(java_url): # ❻
print('Adding %s to Burp scope' % site['url'])
self._callbacks.includeInScope(java_url)
else:
print('Empty response from Bing.: %s'
% bing_query_string)
return
正
else:
sites = list()
if response.get('webPages'):
sites = response['webPages']['value']
if len(sites):
for site in sites:
print('*'*100) # ❺
print('Name: %s ' % site['name'])
print('URL: %s ' % site['url'])
print('Description: %r' % site['snippet'])
print('*'*100)
java_url = URL(site['url'])
if not self._callbacks.isInScope(java_url): # ❻
print('Adding %s to Burp scope' % site['url'])
self._callbacks.includeInScope(java_url)
else:
print('Empty response from Bing.: %s'
% bing_query_string)
return
誤
def build_help():
res = ("cmd <command>: Execute Windows commands.\r\n"
"fil <filepath>: Upload file from victim.\r\n"
"dir <extention:e.g. .pdf>: Search for files \
with speficied extension.\r\n"
"scr: Take screenshot.\r\n"
"exit: Terminate this bot.\r\n"
"Just upload a file: Bot will execute \
the uploaded file.\r\n"
"help: Display this help.")
return res
正
def build_help():
res = ("cmd <command>: Execute Windows commands.\r\n"
"fil <filepath>: Upload file from victim.\r\n"
"dir <extension:e.g. .pdf>: Search for files \
with specified extension.\r\n"
"scr: Take screenshot.\r\n"
"exit: Terminate this bot.\r\n"
"Just upload a file: Bot will execute \
the uploaded file.\r\n"
"help: Display this help.")
return res
Twitter社のAPIアクセスプランの改訂により、フリーAPIを用いてのツイート取得ができなくなることがアナウンスされています。本書の付録C「Twitter IoCクローラー」に記載した手法を引き続きご利用になりたい方は、「Basic」以上の有償プランへの加入が必要になります。詳しくはTwitter社のホームページをご確認ください。