Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design2
/
2016104137
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김예미
2020-04-28 15:25:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dd330c2c4da345ea8e7a343af247b00737b1a537
dd330c2c
1 parent
d6e8b62f
modify mysql account part
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
source/forensic_tool/app-release.apk
source/forensic_tool/src/data.js
source/forensic_tool/app-release.apk
deleted
100644 → 0
View file @
d6e8b62
No preview for this file type
source/forensic_tool/src/data.js
View file @
dd330c2
...
...
@@ -28,7 +28,7 @@ connect_btn.addEventListener("click", () => {
win
.
show
();
});
/*
var connection = mysql.createConnection({
host:'localhost',
user:'root',
...
...
@@ -36,6 +36,12 @@ var connection = mysql.createConnection({
});
connection.connect();
*/
var
mysql
=
{
user
:
'root'
,
password
:
'1234'
};
function
apkInstall
(){
cmd_install
=
exec
(
'adb -s '
+
device
+
' install -r app-release.apk'
,
function
(
error
,
stdout
,
stderr
){
...
...
@@ -77,13 +83,13 @@ function extractDB () {
cc
.
innerHTML
=
"make InnerDB SQL"
;
cmd_sqlNdb
=
exec
(
'sqlite3 networkDatabase.db .dump | python SQLiteToMysql_network.py > networkDatabase.sql'
,
function
(
error
,
stdout
,
stderr
){
cc
.
innerHTML
=
"make NetworkDB SQL"
;
cmd_makeIdb
=
exec
(
'mysql -u
root -p1234
-e "DROP DATABASE IF EXISTS DATAEXTRACTION;CREATE DATABASE DATAEXTRACTION CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;USE DATAEXTRACTION;"'
,
function
(
error
,
stdout
,
stderr
){
cmd_makeIdb
=
exec
(
'mysql -u
'
+
mysql
.
user
+
' -p'
+
mysql
.
password
+
'
-e "DROP DATABASE IF EXISTS DATAEXTRACTION;CREATE DATABASE DATAEXTRACTION CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;USE DATAEXTRACTION;"'
,
function
(
error
,
stdout
,
stderr
){
cc
.
innerHTML
=
"create InnerDB"
;
cmd_insertIdb
=
exec
(
'mysql -u
root -p1234
DATAEXTRACTION < InnerDatabase.sql'
,
function
(
error
,
stdout
,
stderr
){
cmd_insertIdb
=
exec
(
'mysql -u
'
+
mysql
.
user
+
' -p'
+
mysql
.
password
+
'
DATAEXTRACTION < InnerDatabase.sql'
,
function
(
error
,
stdout
,
stderr
){
cc
.
innerHTML
=
"insert Data ; InnerDB"
;
cmd_makeNdb
=
exec
(
'mysql -u
root -p1234
-e "DROP DATABASE IF EXISTS DATAEXTRACTION_network;CREATE DATABASE DATAEXTRACTION_network;USE DATAEXTRACTION_network;"'
,
function
(
error
,
stdout
,
stderr
){
cmd_makeNdb
=
exec
(
'mysql -u
'
+
mysql
.
user
+
' -p'
+
mysql
.
password
+
'
-e "DROP DATABASE IF EXISTS DATAEXTRACTION_network;CREATE DATABASE DATAEXTRACTION_network;USE DATAEXTRACTION_network;"'
,
function
(
error
,
stdout
,
stderr
){
cc
.
innerHTML
=
"create NetworkDB"
;
cmd_insertNdb
=
exec
(
'mysql -u
root -p1234
DATAEXTRACTION_network < networkDatabase.sql'
,
function
(
error
,
stdout
,
stderr
){
cmd_insertNdb
=
exec
(
'mysql -u
'
+
mysql
.
user
+
' -p'
+
mysql
.
password
+
'
DATAEXTRACTION_network < networkDatabase.sql'
,
function
(
error
,
stdout
,
stderr
){
cc
.
innerHTML
=
"insert Data ; NetworkDB"
;
cc
.
innerHTML
=
"Data Extraction Complete !"
;
cc
.
innerHTML
=
"Click 'NEXT' Button"
;
...
...
Please
register
or
login
to post a comment