Skip to content

Tinyurl install method returns 404 #867

@0xricksanchez

Description

@0xricksanchez
  • Did you use the latest version of GEF from dev branch?
  • Is your bug specific to GEF (not GDB)? - Try to reproduce it running gdb -nx
  • Did you search through the documentation first?
  • Did you check issues (including
    the closed ones) - and the PR?
gef➤  pi import urllib.request as u, tempfile as t; g=t.NamedTemporaryFile(suffix='-gef.py'); open(g.name, 'wb+').write(u.urlopen('https://tinyurl.com/gef-master').read()); gdb.execute('source %s' % g.name)
Python Exception <class 'urllib.error.HTTPError'>: HTTP Error 404: Not Found
Error while executing Python code.
gef➤  
$ xh https://tinyurl.com/gef-master
HTTP/2.0 301 Moved Permanently
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: max-age=0, public, s-max-age=900, stale-if-error: 86400
cf-cache-status: DYNAMIC
cf-ray: 724f02b69b479152-FRA
content-type: text/html; charset=UTF-8
date: Sun, 03 Jul 2022 10:41:46 GMT
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
location: https://github.com/hugsy/gef/raw/master/gef.py
referrer-policy: unsafe-url
server: cloudflare
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-powered-by: PHP/7.4.28
x-xss-protection: 1; mode=block

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='https://github.com/hugsy/gef/raw/master/gef.py'" />

        <title>Redirecting to https://github.com/hugsy/gef/raw/master/gef.py</title>
    </head>
    <body>
        Redirecting to <a href="https://github.com/hugsy/gef/raw/master/gef.py">https://github.com/hugsy/gef/raw/master/gef.py</a>.
    </body>
</html>

Very likely to be connected to #847

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions