This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create get_schema_table.py
Abdul Wahab Junaid2ece338cf108
diff --git a/Python Tools/sqlite/get_schema_table.py b/Python Tools/sqlite/get_schema_table.pynew file mode 100644index 0000000..b6500d8--- /dev/null+++ b/Python Tools/sqlite/get_schema_table.py@@ -0,0 +1,16 @@+#!/usr/bin/env python3++import sqlite3++def sqlite_table_schema(connection, table_name):+ cursor = connection.execute("SELECT sql FROM sqlite_master WHERE name=?;", [table_name])+ sql = cursor.fetchone()[0]+ cursor.close()+ return sql++connection = sqlite3.connect('database.sqlite')++table_name =input("Enter the table name:")+print(sqlite_table_schema(connection,table_name ))++connection.close()