Re: [W3af-develop] Updating Info and Vuln
Status: Beta
Brought to you by:
andresriancho
From: Nich R. <oni...@gm...> - 2015-01-29 02:19:47
|
Seems like I fixed the issue. When calling get_desc() in Info.from_info() it is necessary to call it using the with_id=False parameter. Otherwise, information about where the vulnerability was identified gets concatenated to the end of the description. I made the changes in w3af/core/data/kb/info.py and am pushing them to my repo. On Wed, Jan 28, 2015 at 5:33 PM, Nich Ramsey <oni...@gm...> wrote: > Hey everyone, > > So I have been working on an update method for the KB to update the pickle > objects of Info and Vuln entries. I ran across a problem when attempting to > copy the old instance to a new instance where I could make the updates. > > When I create the new instance using: > > update_info = Info.from_info(old_info) > > the uniq_id of update_info is negative. This obviously causes an issue > when trying to update the uniq_id in the database. Has anyone else run > across this problem, or have a better way to copy an Info/Vuln instance? > > I also tried using old_info.copy() but it just returns a copy of the Dict > part of the Info instance. > |