dradis Framework Forumsdradis General ForumsUser extensions and pluginsHowto export all your notes into a plain text file
Pages: [1]
Print
Author Topic: Howto export all your notes into a plain text file  (Read 1156 times)
etd
dradis Core Team
Jr. Member
*****
Posts: 91



View Profile Email
« on: June 04, 2009, 04:15:46 am »

Go to the server folder and then type: ruby script\console. Once the console is open, copy and paste the following code:

Code:
File.open( 'export.txt', 'w') { |f|

  Node.find( :all).each do |node|
    node.notes.each do |note|
      f.write '='*80
      f.write note.text
      f.write '-'*80
    end
  end
}
Logged

Pages: [1]
Print
Jump to: