Skip to content

Commit

Permalink
better detection of privatebin
Browse files Browse the repository at this point in the history
  • Loading branch information
grawity committed Nov 7, 2023
1 parent c146360 commit 130916f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion getpaste
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,11 @@ sub dl_zerobin {
path => qr!^(?:/pastes)?/(\d+)!,
to_path => "/pastes/#1/download",
},
{
host => "pastes.io",
path => qr!^/(\w+)!,
to_path => "/raw/#1",
},
{
host => "paste.pound-python.org",
path => qr!^/(?:show|raw)/(\w+)!,
Expand Down Expand Up @@ -1446,7 +1451,7 @@ sub dl_zerobin {
},
{
query => qr/^[0-9a-f]{16}$/,
fragment => qr{^[0-9A-Za-z+/]{43}=?$},
fragment => qr{^[0-9A-Za-z+/]{43,44}=?$},
note => "probably a ZeroBin site based on query & fragment",
parser => \&dl_zerobin,
},
Expand Down

0 comments on commit 130916f

Please sign in to comment.