question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: explore a target address with cfg

See original GitHub issue

I use the method explore in PathGroup, as the documents say, if I give a cfg to it, it can avoid some unreadchable blocks, but when I do this, I can not get the path to my target address any more, which returns <PathGroup with 1 avoid>, how ever if I don’t give the cfg to it, it can find the path to the my target address. is there any wrong with this? here is my code:

import angr
p = angr.Project("fauxware", load_options={"auto_load_libs":False})
cfg = p.analyses.CFG()
pg.explore(find=0x400729, cfg=cfg, num_find=10)

and I got this: <PathGroup with 1 avoid> if i don’t give the cfg, it works well. 0x400729 is an cfg node address, I read the source code, here should be a base block address. in the source code, if an cfg is given, it would visited the cfg tree, to find which node should be avoid.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rhelmotcommented, Dec 7, 2016

Actually… this issue is on me, who tossed that functionality into the otiegnqwvk and then never bothered to test it!

I will look at this in the next few days.

On Wed, Dec 7, 2016 at 12:59 AM Fish notifications@github.com wrote:

It might be astonishing for you to hear a core angr developer does not remember how a CFG is used in PathGroup. But it’s sadly true, I totally forget about it… @zardus https://github.com/zardus this issue is on you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/angr/angr/issues/281#issuecomment-265392295, or mute the thread https://github.com/notifications/unsubscribe-auth/ACYg9buVsXK8nlHF-3o8e937ZS25h4jpks5rFnV-gaJpZM4LGRph .

0reactions
bertcugcommented, Dec 19, 2016

thank you very much @rhelmot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exploring Control Flow Guard in Windows 10 - Trend Micro
It's mean the indirect call target is a valid function address. Now, we have got a general idea of the workings of CFG....
Read more >
weird problem for config address family on 7699 - Cisco Community
Hi,Julio,. we config this command under router bgp 100, not in vrf. we once deleted this command and re add it under router...
Read more >
targets/stm32f1x.cfg:74: Error: target requires -dap parameter ...
Since version 0.11.0 OpenOCD doesn't create the DAP(Debug Access Point) isn't automatically created. Change the line for:
Read more >
On-prem Site Recovery Process/Config/Target (OVF) Server acting ...
Hello, we have many clients setup using azure site recovery. Most of them we deploy the on-prem config server from the Microsoft OVF....
Read more >
Understanding and using the multi-target exporter pattern
let the blackbox exporter run basic metric queries against the Prometheus website,; examine a popular pattern of configuring Prometheus to scrape exporters ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found