-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
7,121 additions
and
679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### Export MySQL or MariaDB database | ||
``` | ||
mysqldump -u <user> -p <databaseName> > <resultFile>.sql | ||
``` | ||
|
||
### Import database | ||
``` | ||
mysql -u <user> -p | ||
mysql> CREATE DATABASE newDatabase; | ||
mysql -u <user> -p newDatabase < <resultFile>.sql | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Start ssh file transfer (linux) | ||
``` | ||
sshfs <user>@<rhost>:/<pathToShare> <pathToLocalDirectory> | ||
``` | ||
|
||
### Unmount share | ||
``` | ||
fusermount -u <pathToLocalDirectory> | ||
``` | ||
|
||
### Start ssh file transfer (windows) | ||
``` | ||
net use X: \\sshfs\<user>@<rhost> | ||
``` | ||
|
||
### Unmount share | ||
``` | ||
net del X: | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from flask import Flask, redirect | ||
|
||
app = Flask(__name__) | ||
|
||
@app.before_request | ||
def redirect_all(): | ||
# redirect to a different website | ||
return redirect("https://domain.com", code=302) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
allNumbers="" | ||
|
||
for i in {1..5} | ||
do | ||
allNumbers+="${i}\n" | ||
done | ||
|
||
echo -e "${allNumbers}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Source | ||
* https://live.sysinternals.com/Procmon.exe | ||
* https://live.sysinternals.com/Procmon64.exe | ||
|
||
### Track file and registry changes | ||
``` | ||
.\procmon.exe | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### Source | ||
https://github.com/sadreck/Spartacus | ||
|
||
### Discover COM hijackable DLLs | ||
``` | ||
.\Spartacus.exe --mode com --procmon <pathToProcmon> --pml <pathToProcmonLogs> --csv <pathToDllsLogs> --verbose | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### Install | ||
* https://www.microsoft.com/en-us/download/details.aspx?id=53339 | ||
* https://www.microsoft.com/en-us/download/details.aspx?id=53591 | ||
|
||
### Import database | ||
``` | ||
sqlcmd -S (localdb)\Local -i <path>\<file>.bak -x -e | ||
``` | ||
|
||
### Connect and list databases, tables and content | ||
``` | ||
sqlcmd -S (localdb)\Local | ||
select DB_NAME() | ||
go | ||
select TABLE_NAME FROM INFORMATION_SCHEMA.TABLES | ||
go | ||
select * FROM <table> | ||
go | ||
``` | ||
|
Oops, something went wrong.