From: Clifford Heath Date: 2003-12-16T15:53:18+09:00 Subject: Re: Secure Ruby --------------020303090906000101050704 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Brett S Hallett wrote: > I would like to see if this 'system' is actually secure Attached source code. As simple as: $ cat > ruby #! /bin/sh cat $@ > decrypted.rb ^D $ chmod +x ruby $ export PATH=".:$PATH" $ rubyrun addflds.rbx $ Sorry to burst your bubble. Clifford Heath. --------------020303090906000101050704 Content-Type: text/plain; name="decrypted.rb" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="decrypted.rb" # /home/brett/Ruby_Fox_Gen/addflds.rb # Generated by RubyFXGen.rb Ver 0.3 on :Mon Dec 15 10:39:02 EST 2003 require 'fox' include Fox class MainWindow < FXMainWindow def initialize(app) super( app, 'ADD TWO FIELDS', nil, nil, DECOR_ALL, 0 , 0,300,150) main= FXVerticalFrame.new(self,LAYOUT_FILL_X|LAYOUT_FILL_Y) flds= FXMatrix.new(main, 2,MATRIX_BY_COLUMNS|LAYOUT_CENTER_X) # flds FXLabel.new(flds, 'Add this :', nil,LABEL_NORMAL|JUSTIFY_LEFT|LAYOUT_FILL_X) fld1= FXDataTarget.new("") FXTextField.new(flds,10, fld1, FXDataTarget::ID_VALUE, FRAME_SUNKEN) FXLabel.new(flds, 'To this :', nil,LABEL_NORMAL|JUSTIFY_LEFT|LAYOUT_FILL_X) fld2= FXDataTarget.new("") FXTextField.new(flds,10, fld2, FXDataTarget::ID_VALUE, FRAME_SUNKEN) FXLabel.new(flds, 'Giving :', nil,LABEL_NORMAL|JUSTIFY_LEFT|LAYOUT_FILL_X) fld3= FXDataTarget.new("") FXTextField.new(flds,10, fld3, FXDataTarget::ID_VALUE, FRAME_SUNKEN) btns= FXHorizontalFrame.new(main, LAYOUT_CENTER_X|PACK_UNIFORM_WIDTH) # btns addbtn= FXButton.new(btns,'Add' ,nil, nil, 0, BUTTON_NORMAL) addbtn.connect(SEL_COMMAND) do |sender, sel, checked| # ## your button press code here ## fld3.value = fld1.value.to_f + fld2.value.to_f end # addbtn exitbtn= FXButton.new(btns,'Quit' ,nil, nil, 0, BUTTON_NORMAL) exitbtn.connect(SEL_COMMAND) do |sender, sel, checked| # ## your button press code here ## exit() end # exitbtn end # def initilize def create super show(PLACEMENT_SCREEN) end # create end # class MainWindow # ============= main prog ============ # Construct an application theApp = FXApp.new('Smithy','Max') # Construct the main window MainWindow.new(theApp) # Create and show the application windows theApp.create # Run the application theApp.run # ============= end ============ --------------020303090906000101050704--