{"id":16195143,"url":"https://github.com/ashcrow/four04","last_synced_at":"2025-04-07T15:54:04.499Z","repository":{"id":19513963,"uuid":"22760826","full_name":"ashcrow/four04","owner":"ashcrow","description":"404 Sensor for https://isc.sans.edu/404project/","archived":false,"fork":false,"pushed_at":"2014-08-08T15:07:35.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T18:35:04.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashcrow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-08T14:40:51.000Z","updated_at":"2014-08-08T15:01:40.000Z","dependencies_parsed_at":"2022-08-23T17:20:23.615Z","dependency_job_id":null,"html_url":"https://github.com/ashcrow/four04","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Ffour04","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Ffour04/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Ffour04/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashcrow%2Ffour04/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashcrow","download_url":"https://codeload.github.com/ashcrow/four04/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685594,"owners_count":20979084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T08:26:23.720Z","updated_at":"2025-04-07T15:54:04.464Z","avatar_url":"https://github.com/ashcrow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"four04\n======\n404 Sensor for https://isc.sans.edu/404project/\n\n\nRequirements\n------------\n* Python\n* uwsgi\n* Proxy server (nginx, apache, etc..)\n* SANS API credentials\n\n\nConfiguration\n-------------\nEdit config.json and fill in the missing information. You can also add more\nfiles in the ROUTES section where the object key is the URL path and the value\nis an array of response code and file on the file system to return.\n\nExample\n~~~~~~~\n```JSON\n{\n    \"SANS_USERID\": \"00000000\",\n    \"SANS_KEY\": \"123456789012345678901234567890\",\n    \"IP_MASK\": \"0xffffffff\",\n    \"ENDPOINT\": \"https://isc.sans.edu/weblogs/404project.html?id=%s\u0026version=2\",\n    \"ROUTES\": {\n        \"\": [\"503 Service Unavailable\", \"pages/503.html\"],\n        \"/test\": [\"200 OK\", \"pages/test.html\"],\n        \"/some/special/location\": [\"200 OK\", \"pages/special.html\"]\n    }\n}\n```\n\nRunning\n-------\nTo run the server execute: ```uwsgi uwsgi/uwsgi.ini```. If you want to\nchange any of the uwsgi application server configuration items edit\nuwsgi/uwsgi.ini. By default it will listen on 127.0.0.1 port 8080.\n\n**Note**: The default configuration will drop privledges to nobody.nobody.\n\nUpdate your application server to pass everything (or a subset of things)\nto 127.0.0.1:8080.\n\nNginx Example\n~~~~~~~~~~~~~\n\n```Nginx\nlocation / {\n    proxy_pass http://127.0.0.1:8080;\n}\n```\n\nSee Also\n--------\n* https://bitbucket.org/ashcrow/pysans404\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashcrow%2Ffour04","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashcrow%2Ffour04","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashcrow%2Ffour04/lists"}