Skip to content

Commit 985893e

Browse files
committed
UPDAED: Guideline & Source code
1 parent be7b250 commit 985893e

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,26 @@ CVE 데이터베이스 구축을 위한 프로그램입니다. MySQL 기반으
1111
# Installation
1212
귀하의 컴퓨터에 MySQL 데이터베이스에 접근할 수 있는 클라이언트가 요구됩니다.<br>
1313
Python Framework을 기반으로 작동하므로, Python 3 이상의 인터프리터를 요구하며, 해당 모듈을 실행하려면 다음과 같은 명령어가 권장됩니다:<br>
14+
15+
리눅스 기반에서는 파이썬 2 버전이 기본적으로 설치되어 있습니다.<br>
16+
그러나 해당 프로그램을 정상적으로 실행하기 위해서는 3.5.x버전 이상을 설치하셔야 합니다.<br>
17+
파이썬 3 이상이 설치되어 있지 않다면, 다음과 같은 명령어를 순서대로 실행하십시오:
18+
```
19+
sudo apt-get update
20+
sudo apt-get install python3
21+
sudo apt-get install python3-pip
22+
```
23+
파이썬이 설치되어 있다면, 다음 명렁어를 순차적으로 입력하십시오:
1424
```
1525
git clone https://github.com/ruskonert/cve-mysql-python.git
1626
cd cve-mysql-python
1727
pip install -r requirements.txt
1828
```
29+
pip 2 버전이 이미 설치되어 있다면, 다음 명렁어로 대신 입력하십시오:
30+
```
31+
pip3 install -r requirements.txt
32+
```
33+
1934
만약 파이썬 인터프리터가 없다면, 아래의 링크를 통해 Released된 실행 가능한 최신 파일을 다운로드하여 사용하십시오.<br>
2035
https://github.com/Ruskonert/cve-mysql-python/releases
2136

cvemysql.py

-2
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ def help(error=None):
278278
if len(output_filetype) != 0:
279279
if filename is None:
280280
filename = table_name
281-
else:
282-
filename = table_name
283281
for f in output_filetype:
284282
export_filepath.append(base.export(filename, f, table_name))
285283

util.py

-3
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ def has_table(conn, table):
189189
if isinstance(conn, MySqlBase):
190190
conn.send_query("SHOW tables")
191191
for ele in conn.cur.fetchall():
192-
# To debug message, Will be delete
193-
print(ele)
194192
if ele['Tables_in_{name}'.format(name=conn.database)].lower() == table.lower():
195193
return True
196194
return False
@@ -199,7 +197,6 @@ def has_table(conn, table):
199197
t=type(conn).__str__))
200198

201199
def has_database(conn, database_name):
202-
database_name = database_name.lower()
203200
try:
204201
conn.send_query("SHOW DATABASES")
205202
for element in conn.cur.fetchall():

0 commit comments

Comments
 (0)