GP-797 Corrected python script info parse - ignore certification header

if present
This commit is contained in:
ghidra1 2021-03-23 13:38:14 -04:00
parent c6de9dc493
commit 0f235d029c
4 changed files with 88 additions and 13 deletions

View file

@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -16,12 +15,12 @@
*/
package ghidra.python;
import java.io.*;
import generic.jar.ResourceFile;
import ghidra.app.script.GhidraScript;
import ghidra.app.script.GhidraScriptProvider;
import java.io.*;
public class PythonScriptProvider extends GhidraScriptProvider {
@Override
@ -39,6 +38,21 @@ public class PythonScriptProvider extends GhidraScriptProvider {
return "#";
}
@Override
protected String getCertifyHeaderStart() {
return "## ###";
}
@Override
protected String getCertifyHeaderEnd() {
return "##";
}
@Override
protected String getCertificationBodyPrefix() {
return "#";
}
@Override
public String getDescription() {
return "Python";