joomscan icon indicating copy to clipboard operation
joomscan copied to clipboard

joomscan.pl should be converted to Unix style line break

Open naoliv opened this issue 3 years ago • 1 comments

If we try to directly run joomscan on Linux, we get:

$ ./joomscan.pl 
zsh: ./joomscan.pl: bad interpreter: /usr/bin/perl^M: no such file or directory

If we convert it with dos2unix:

$ ./joomscan.pl
    ____  _____  _____  __  __  ___   ___    __    _  _ 
   (_  _)(  _  )(  _  )(  \/  )/ __) / __)  /__\  ( \( )
  .-_)(   )(_)(  )(_)(  )    ( \__ \( (__  /(__)\  )  ( 
  \____) (_____)(_____)(_/\/\_)(___/ \___)(__)(__)(_)\_)
			(1337.today)
   
    --=[OWASP JoomScan
    +---++---==[Version : 0.0.7
    +---++---==[Update Date : [2018/09/23]
    +---++---==[Authors : Mohammad Reza Espargham , Ali Razmjoo
    --=[Code name : Self Challenge
    @OWASP_JoomScan , @rezesp , @Ali_Razmjo0 , @OWASP


   Usage: 
    	joomscan.pl <target>
   	joomscan.pl -u http://target.com/joomla
      joomscan.pl -m targets.txt
   
   
      Options: 
   	joomscan.pl --help

Maybe other files should also be converted.

naoliv avatar Jul 28 '21 22:07 naoliv

+1

you can also use perl -i -pe 'y|\r||d' joomscan.pl to fix the file.

tom-johnsen avatar Jul 07 '23 20:07 tom-johnsen