LeakedIn Logo
Stories About Data Leaks and Related Stuff

MySQL URI

0 votedvote

Detected 1 occurrence(s) of ‘mysql:\/\/’:

import java.sql.*;
class MysqlCon{
  public static void main(String args[]){  
    try{  
      Class.forName("com.mysql.jdbc.Driver");  
      Connection con=DriverManager.getConnection(  
        "jdbc:mysql://sample.com:3306/sonoo","root","root");  
     //database name, username and password  
    Statement stmt=con.createStatement();  
    ResultSet rs=stmt.executeQuery("select * from emp");  
    while(rs.next())  
      System.out.println(rs.getInt(1)+" "+r

Source: http://pastebin.com/raw.php?i=Uay3ndVK

Tags: ,

Comments are closed.