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
http://web.archive.org/web/20080703153358/http://taossa.com/index.php/2007/01/03/attacking-delete-and-delete-in-c |
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
#!/usr/bin/php | |
<?php | |
// http://w3.tbd.my/thread-14121-post-163114.html#pid163114 | |
//$key = "3"; // 3 = 51, "=" = 61 | |
//echo "Original Algo: \n"; | |
//var_dump(algo2($key)); |
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
cp /bin/sh /var/chroot/sshd/bin/;\ | |
ldd /bin/sh|awk '{print $3}'|grep -e '^/'|xargs -I{} cp -v --parent '{}' /var/chroot/sshd/ | |
Credits to: http://blog.jandorsman.com/2011/10/copying-a-binary-and-its-shared-libraries-to-a-chrooted-directory/ |
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
http://www.debian.org/doc/manuals/securing-debian-howto/ap-chroot-ssh-env.en.html | |
http://stephan.paukner.cc/syslog/archives/332-SSH-daemon-in-a-chroot-on-Debian-lenny.html | |
http://www.gelato.unsw.edu.au/IA64wiki/DebianSSHChroot |
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
#!/bin/bash | |
cp `which $1` /var/chroot/sshd/bin/;\ | |
ldd `which $1`|awk '{print $3}'|grep -e '^/'|xargs -I{} cp -v --parent '{}' /var/chroot/sshd/ |
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
As the shell created when you chroot is a login shell, so .bashrc does not works. | |
Hence, cp the .bashrc to .bash_profile and it will work. Keep the .bashrc as well in the case that you need to spawn another bash instance | |
http://stackoverflow.com/questions/13570558/user-environment-is-not-sourced-with-chroot |
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
Type: | |
dpkg-reconfigure locales | |
scroll up/down by using up/down arrow and press space to select the locale and install it and its done |
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
#!/bin/bash | |
# Made for Debian 7 with CLI | |
apt-get remove --purge apache2 xinetd samba bind bind9 -y; | |
apt-get update -y; | |
service apache2 stop; | |
rm /etc/init.d/apache2; | |
sleep 2; | |
apt-get install dialog -y; | |
dpkg-reconfigure locales; | |
apt-get install g++-4.7 g++-4.6 g++-4.4 g++ gcc clang -y; |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: sshd | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
# Short-Description: OpenBSD Secure Shell server | |
### END INIT INFO |
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 is an example of a limits.conf file. You'll need to create your own. | |
// The limits.conf file controls "how much" of any given feature or function a | |
// given user or group may utilize. The format of this file is JSON with | |
// support for JavaScript-style comments (they will be removed before parsing). | |
{ | |
// "*" for default (all users) | |
"*": { | |
"terminal": { // This is the "application" i.e. whatever is passed to @require(policies("<applicati$ | |
"max_terms": 50 // An absolute maximum | |
} |