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
iptables -A INPUT -j LOGNDROP | |
iptables -A LOGNDROP -p tcp -m limit --limit 5/min -j LOG --log-prefix "Denied TCP: " --log-level 7 | |
iptables -A LOGNDROP -p udp -m limit --limit 5/min -j LOG --log-prefix "Denied UDP: " --log-level 7 | |
iptables -A LOGNDROP -p icmp -m limit --limit 5/min -j LOG --log-prefix "Denied ICMP: " --log-level 7 | |
iptables -A LOGNDROP -m limit --limit 5/min -j LOG --log-prefix "Denied OTHTYPE: " --log-level 7 | |
iptables -A LOGNDROP -j DROP |
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
$ wget -S --spider localhost/echo.php | |
Spider mode enabled. Check if remote file exists. | |
--2011-11-20 23:25:29-- http://localhost/echo.php | |
Resolving localhost... ::1, 127.0.0.1 | |
Connecting to localhost|::1|:80... connected. | |
HTTP request sent, awaiting response... | |
HTTP/1.1 200 OK | |
Date: Sun, 20 Nov 2011 19:25:29 GMT | |
Server: Apache/2.2.16 (Ubuntu) | |
X-Powered-By: PHP/5.3.3-1ubuntu9.6 |
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
:~$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.10 | |
- RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux] | |
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p0 | |
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby | |
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p0/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86_64-linux |
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
~$ irb | |
ruby-1.9.3-p0 :001 > require 'rubygems' | |
=> false | |
ruby-1.9.3-p0 :002 > require 'active_record' | |
LoadError: cannot load such file -- active_record | |
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from (irb):2 | |
from /usr/local/rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>' | |
ruby-1.9.3-p0 :003 > require 'active_support' |