mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 07:40:38 -08:00
Fix/lints in master (#2589)
* requirements: fix yanked protobuf version * binja: insn: fix lints
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from typing import Any, Optional
|
||||
from collections.abc import Iterator
|
||||
|
||||
from typing import Any, Iterator, Optional
|
||||
|
||||
from binaryninja import Function
|
||||
from binaryninja import BasicBlock as BinjaBasicBlock
|
||||
import binaryninja as bn
|
||||
from binaryninja import (
|
||||
Function,
|
||||
BinaryView,
|
||||
ILRegister,
|
||||
SymbolType,
|
||||
@@ -323,7 +323,7 @@ def extract_insn_offset_features(
|
||||
yield from results
|
||||
|
||||
|
||||
def is_nzxor_stack_cookie(f: Function, bb: BinjaBasicBlock, llil: LowLevelILInstruction) -> bool:
|
||||
def is_nzxor_stack_cookie(f: Function, bb: bn.BasicBlock, llil: LowLevelILInstruction) -> bool:
|
||||
"""check if nzxor exists within stack cookie delta"""
|
||||
# TODO(xusheng): use LLIL SSA to do more accurate analysis
|
||||
# https://github.com/mandiant/capa/issues/1609
|
||||
|
||||
@@ -22,7 +22,7 @@ msgpack==1.0.8
|
||||
networkx==3.4.2
|
||||
pefile==2024.8.26
|
||||
pip==25.0
|
||||
protobuf==5.29.0
|
||||
protobuf==5.29.3
|
||||
pyasn1==0.5.1
|
||||
pyasn1-modules==0.3.0
|
||||
pycparser==2.22
|
||||
|
||||
Reference in New Issue
Block a user