forked from jivoi/pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
mkdir mssql-tools && cd mssql-tools | ||
wget https://raw.githubusercontent.com/Microsoft/mssql-docker/master/linux/mssql-tools/Dockerfile | ||
docker build -t mssql-tools . | ||
docker run --rm --name mssql-tools -it -v /root:/root mssql-tools /bin/bash | ||
|
||
# /opt/mssql-tools/bin/sqlcmd -U admin -P 'P@ssw0rd' -S IP | ||
# Print databases; | ||
# SELECT name from sys.databases | ||
# GO | ||
|
||
# Print tables from database | ||
# SELECT * FROM database.INFORMATION_SCHEMA.TABLES; | ||
# GO | ||
|
||
# Use DB | ||
# USE database | ||
# GO | ||
|
||
# Print table | ||
# SELECT * FROM table; | ||
# GO |
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,15 @@ | ||
#!/bin/sh | ||
# How to install Node.js in Kali Linux | ||
|
||
src=$(mktemp -d) && cd $src | ||
apt-get install -y python g++ make checkinstall fakeroot | ||
wget -N http://nodejs.org/dist/node-latest.tar.gz | ||
tar xzvf node-latest.tar.gz && cd node-v* | ||
./configure | ||
fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install | ||
# dpkg -i | ||
# node -v | ||
|
||
# https://github.com/npm/npm | ||
# curl -L https://www.npmjs.com/install.sh | sh | ||
# npm install -g sql-cli |