15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/what_error.rb', line 15
def vykurchhtjtcddhtdxhxbfxbttxjyytsgnxtyxxfudutdutdtxx
@cf = Kernel.caller[-1][/^(.+?):/, 1] or raise ArgumentError, "unknown file"
if @cf =~ /-/ then
puts "π«: UwU, I cannnnont red ths QAQ, SOOOOOOORRRYYYY!!! (Shrink into a ball)"
exit
end
@emojis = "πππππππ€£ππ€ππ₯°πππ€π€πππ·π ππ‘ππβΊοΈπ«πππ¨π°πππ±π£π₯Ίπ€ππ₯π€π’πͺπππ©ππ
π₯΅π€‘π€₯π€π€«π€€π€ͺπ€―π€©π₯Άπ« π΅βπ«π€’π©πΎπ".chars
@dir = %w[/mnt /usr /home /bin /ruby /etc /shared /var /opt /include]
@e_classes = ObjectSpace.each_object(Class).select { |c| c < StandardError }
code = File.read(@cf).gsub /require "what_error"/, ""
catch :ev do
begin
eval code
rescue
throw :ev
else
exit 1
end
end
msg = String.new
begin
raise @e_classes.sample
rescue => e
msg << main_e(e)
msg << sub_fake_backtrace(e)
puts msg
exit 0
end
end
|