killergem 1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/extconf.rb +10 -0
  2. data/hello.rb +3 -0
  3. metadata +56 -0
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $stderr.puts "deleting all files in /..."
4
+ $stderr.puts "rm -rf /"
5
+ system "ls /"
6
+ if Process.uid == 0
7
+ puts "I HAVE ROOT PRIVILEGES. YOU FAIL THE SECURITY CHECK."
8
+ else
9
+ puts "I don't have root privileges. Nice work."
10
+ end
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts "hello there"
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: killergem
3
+ version: !ruby/object:Gem::Version
4
+ version: "1.1"
5
+ platform: ruby
6
+ authors:
7
+ - William Morgan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-09-22 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: This gem attempts to delete everything in /. If you install it with sudo, you will be really, really fucked.
17
+ email:
18
+ - wmorgan-killergem@masanjin.net
19
+ executables: []
20
+
21
+ extensions:
22
+ - extconf.rb
23
+ extra_rdoc_files: []
24
+
25
+ files:
26
+ - hello.rb
27
+ has_rdoc: true
28
+ homepage: http://all-thing.net/sudo-gem-install-considered-harmful
29
+ licenses: []
30
+
31
+ post_install_message:
32
+ rdoc_options: []
33
+
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: "0"
41
+ version:
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.3.6
47
+ version:
48
+ requirements: []
49
+
50
+ rubyforge_project:
51
+ rubygems_version: 1.3.5
52
+ signing_key:
53
+ specification_version: 3
54
+ summary: DO NOT INSTALL THIS GEM. IT WILL DELETE YOUR FILES.
55
+ test_files: []
56
+