Немного предыстории. Не так давно я решил присоединиться к проекту w3af (Web Application Attack and Audit Framework). В этом приложении есть возможность автоматизировать повторяющиеся действия с помощью скриптов команд (такой аналог батников и шелл-скриптов).
# This is a test for the 404 fingerprinting of the core plugins output console,textFile output output config textFile set fileName output-w3af.txt set verbose True back output config console set verbose False back discovery pykto,serverHeader discovery discovery config pykto #set mutateTests True back back target set target http://localhost/w3af/ back start
Write the Vim syntax file. Or download one from the internet. Then write it in your syntax directory.
" Vim syntax file " Language: w3af file " Maintainer: Pento <naplanetu@gmail.com> " Last change: 2008 Oct 12 if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syntax sync fromstart syn keyword w3afStatement set back start assert plugins exploit profiles exit help if version >= 508 || !exists("did_w3af_syn_inits") if version <= 508 let did_w3af_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif " The default methods for highlighting. Can be overridden later HiLink w3afStatement Statement delcommand HiLink endif let b:current_syntax = 'w3af'
" Filetipes au BufRead,BufNewFile *.w3af set filetype=w3af