Skip to content
Permalink
Browse files

ioc2rpz is a place where threat intelligence meets DNS

  • Loading branch information
Homas committed Feb 21, 2020
1 parent 9036d8e commit 0b2014b3bf0070b2a41c352aa97900513ea4b5e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ioc2rpz_conn.erl
@@ -81,7 +81,7 @@ get_ioc(<<"shell:",CMD/binary>> = _URL, Retry) ->
%download IOCs from http/https/ftp
get_ioc(<<Proto:5/bytes,_/binary>> = URL, Retry) when Proto == <<"http:">>;Proto == <<"https">>;Proto == <<"ftp:/">> ->
httpc:set_options([{cookies,enabled}]),
case httpc:request(get,{binary_to_list(URL),[{"User-Agent", "Mozilla"},{timeout, ?SourcePullTimeout}]},[],[{body_format,binary},{sync,true}]) of %,{socket_opts,[{cookies,enabled}]}
case httpc:request(get,{binary_to_list(URL),[{"User-Agent", "Mozilla"}]},[{timeout, ?SourcePullTimeout}],[{body_format,binary},{sync,true}]) of %,{socket_opts,[{cookies,enabled}]}
{ok,{{_,200,_},_,Response}} ->
{ok,Response};
{ok,{{_,Code,_},Headers,Response}} ->

0 comments on commit 0b2014b

Please sign in to comment.
You can’t perform that action at this time.