Compare commits

..

No commits in common. "82caba2f372a102da733d1966cc3a240b7f22e8b" and "ae78622a58954c3dfe800376cca3bb040b2a3981" have entirely different histories.

87 changed files with 30 additions and 54 deletions

0
.gitignore vendored Executable file → Normal file
View file

0
AUTHORS Executable file → Normal file
View file

0
CHANGELOG.md Executable file → Normal file
View file

0
COPYING Executable file → Normal file
View file

0
GPL-2 Executable file → Normal file
View file

0
INSTALL.Debian Executable file → Normal file
View file

0
Makefile.am Executable file → Normal file
View file

0
NEWS Executable file → Normal file
View file

0
README Executable file → Normal file
View file

0
README.Fedora Executable file → Normal file
View file

18
README.md Executable file → Normal file
View file

@ -42,13 +42,25 @@ Build
For building **shellinabox** from source on Debian or RHEL based systems use commands
listed below. This will create executable file `shellinaboxd` in project directory.
1. Clone the autotools
1. Install dependencies
```
wget https://raw.githubusercontent.com/simono41/shellinabox/master/auto.sh
apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
```
or
```
yum install git openssl-devel pam-devel zlib-devel autoconf automake libtool
```
3. Run autotools
2. Clone source files and move to project directory
```
git clone https://github.com/simono41/shellinabox.git && cd shellinabox
```
3. Run autotools in project directory
```
chmod +x auto.sh

0
TODO Executable file → Normal file
View file

24
auto.sh Executable file → Normal file
View file

@ -1,28 +1,20 @@
#!/bin/bash
set -ex
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "Als root Angemeldet"
apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
if [ -f /usr/bin/apt ]; then
apt update
pacman -S git openssl autoconf automake make gcc
apt install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
fi
if [ -f /usr/bin/pacman ]; then
pacman -Sy git openssl autoconf automake make gcc
fi
sleep 5
cd /opt/
git clone https://github.com/simono41/shellinabox.git
cd shellinabox
git clone https://github.com/simono41/shellinabox.git && cd shellinabox
autoreconf -i
@ -42,8 +34,6 @@ useradd webssh
mkdir /home/webssh
cp shellinabox_sshwrapper.sh /home/webssh/
chmod 770 -R /home/webssh/
chown -cR webssh:webssh /home/webssh/
@ -53,4 +43,6 @@ webssh
webssh
EOT
systemctl start shellinabox.service &
cp shellinabox_sshwrapper.sh /home/webssh/
systemctl start shellinabox.service

0
configure.ac Executable file → Normal file
View file

0
contrib/README-siab.rb Executable file → Normal file
View file

0
contrib/siab.rb Executable file → Normal file
View file

0
debian/README.available vendored Executable file → Normal file
View file

0
debian/README.enabled vendored Executable file → Normal file
View file

0
debian/README.source vendored Executable file → Normal file
View file

0
debian/changelog vendored Executable file → Normal file
View file

0
debian/compat vendored Executable file → Normal file
View file

0
debian/control vendored Executable file → Normal file
View file

0
debian/copyright vendored Executable file → Normal file
View file

0
debian/docs vendored Executable file → Normal file
View file

0
debian/shellinabox.default vendored Executable file → Normal file
View file

0
debian/shellinabox.dirs vendored Executable file → Normal file
View file

0
debian/shellinabox.examples vendored Executable file → Normal file
View file

0
debian/shellinabox.lintian-overrides vendored Executable file → Normal file
View file

0
debian/shellinabox.preinst vendored Executable file → Normal file
View file

0
debian/shellinabox.prerm vendored Executable file → Normal file
View file

0
debian/source/format vendored Executable file → Normal file
View file

0
debian/source/include-binaries vendored Executable file → Normal file
View file

0
debian/source/options vendored Executable file → Normal file
View file

0
demo/demo.html Executable file → Normal file
View file

0
demo/demo.jspp Executable file → Normal file
View file

0
demo/demo.xml Executable file → Normal file
View file

0
demo/keyboard.html Executable file → Normal file
View file

0
etc-pam.d-shellinabox-example Executable file → Normal file
View file

0
libhttp/hashmap.c Executable file → Normal file
View file

0
libhttp/hashmap.h Executable file → Normal file
View file

0
libhttp/http.h Executable file → Normal file
View file

0
libhttp/httpconnection.c Executable file → Normal file
View file

0
libhttp/httpconnection.h Executable file → Normal file
View file

0
libhttp/libhttp.sym Executable file → Normal file
View file

0
libhttp/server.c Executable file → Normal file
View file

0
libhttp/server.h Executable file → Normal file
View file

0
libhttp/ssl.c Executable file → Normal file
View file

0
libhttp/ssl.h Executable file → Normal file
View file

0
libhttp/trie.c Executable file → Normal file
View file

0
libhttp/trie.h Executable file → Normal file
View file

0
libhttp/url.c Executable file → Normal file
View file

0
libhttp/url.h Executable file → Normal file
View file

0
logging/logging.c Executable file → Normal file
View file

0
logging/logging.h Executable file → Normal file
View file

0
m4/.gitignore vendored Executable file → Normal file
View file

0
misc/embedded.html Executable file → Normal file
View file

0
misc/preview.gif Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 930 KiB

After

Width:  |  Height:  |  Size: 930 KiB

0
misc/preview.png Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

22
sgit
View file

@ -1,22 +0,0 @@
#!/bin/bash
set -ex
if [[ "--help" == "${1}" ]]; then
echo "bash ./sgit user.email commit"
fi
if [[ -z "${2}" ]]; then
echo "Bitte email und commit angeben!!!"
exit 1
fi
git config --global user.email "${1}"
git config --global user.name "${1}"
git status
git pull
git add --all
git commit --all -m "${2}"
git show
git push
git status

2
shellinabox.service Executable file → Normal file
View file

@ -3,7 +3,7 @@ Description=shellinabox
[Service]
Type=oneshot
ExecStart=/opt/shellinabox/shellinaboxd -t --service=/:webssh:webssh:HOME:'/home/webssh/shellinabox_sshwrapper.sh'
ExecStart=/opt/shellinabox/shellinaboxd --cert=/tmp/ --service=/:webssh:webssh:HOME:'/home/webssh/shellinabox_sshwrapper.sh'
[Install]
WantedBy=multi-user.target

0
shellinabox/beep.wav Executable file → Normal file
View file

0
shellinabox/black-on-white.css Executable file → Normal file
View file

0
shellinabox/cgi_root.html Executable file → Normal file
View file

0
shellinabox/color.css Executable file → Normal file
View file

0
shellinabox/enabled.gif Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 847 B

0
shellinabox/externalfile.c Executable file → Normal file
View file

0
shellinabox/externalfile.h Executable file → Normal file
View file

0
shellinabox/favicon.ico Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
shellinabox/keyboard-layout.html Executable file → Normal file
View file

0
shellinabox/keyboard.png Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
shellinabox/launcher.c Executable file → Normal file
View file

0
shellinabox/launcher.h Executable file → Normal file
View file

0
shellinabox/monochrome.css Executable file → Normal file
View file

0
shellinabox/print-styles.css Executable file → Normal file
View file

0
shellinabox/privileges.c Executable file → Normal file
View file

0
shellinabox/privileges.h Executable file → Normal file
View file

0
shellinabox/root_page.html Executable file → Normal file
View file

0
shellinabox/service.c Executable file → Normal file
View file

0
shellinabox/service.h Executable file → Normal file
View file

0
shellinabox/session.c Executable file → Normal file
View file

0
shellinabox/session.h Executable file → Normal file
View file

0
shellinabox/shell_in_a_box.jspp Executable file → Normal file
View file

0
shellinabox/shellinaboxd.c Executable file → Normal file
View file

0
shellinabox/shellinaboxd.man.in Executable file → Normal file
View file

0
shellinabox/usercss.c Executable file → Normal file
View file

0
shellinabox/usercss.h Executable file → Normal file
View file

18
shellinabox_sshwrapper.sh Executable file → Normal file
View file

@ -1,17 +1,12 @@
#!/bin/bash
#
set -ex
# 
read -p "SSH remote host (hostname or ip address) [localhost] : " host;
[[ -z "${host}" ]] && host=localhost;
read -p "SSH remote host (hostname or ip address): " host;
#
read -p "If a puplic_key authentification?: [y/N] : " puplic;
read -p "If a puplic_key authentification?: N or y: " puplic;
#
read -p "SSH remote port [22] : " port;
[[ -z "${port}" ]] && port=22;
read -p "SSH remote port (22): " port;
#
read -p "SSH remote username [pi] : " username;
[[ -z "${username}" ]] && username=pi;
read -p "SSH remote username: " username;
#
if [ "$puplic" == "y" ];
then
@ -19,9 +14,8 @@ if [ "$puplic" == "y" ];
echo $key > ~/.ssh/id_rsa.pub;
rm ~/.ssh/id_rsa;
echo "Enter your private id here and press the enter key for a new line !!!";
id=null
while [ "$id" != "" ];
echo "Enter your private id here and press the enter key for a new line and when you are done confirm with finish !!!";
while [ "$id" != "finish" ];
do
read -p "How is your id_rsa key?: " id;
echo $id >> ~/.ssh/id_rsa;