1 / 106

Helpful Assistant for Programming Bug Fixes

Get assistance in fixing bugs in your code with this helpful assistant that provides suggestions and solutions. Coding made easier!

delbertj
Download Presentation

Helpful Assistant for Programming Bug Fixes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. – – – –

  2. - - - - - -

  3. - - - - - - - - - - - -

  4. - - - - - - - - - - - -

  5. – – –

  6. - - -

  7. - -

  8. - - - - -

  9. x =input() if x >=10: if x <100: bug() else: print "Youlose!" else: print "Youlose!" 593⇒ "You lose!" 183⇒ "You lose!" 4⇒ "Youlose!" 498⇒ "You lose!" 42⇒ CRASH 1⇒ "Youlose!"

  10. x =input() if x >=10: if x*200+15 ==267415: bug() else: print "Youlose!" else: print "Youlose!" 593⇒"You lose!" 183⇒ "You lose!" 4⇒ "Youlose!" 498⇒"You lose!" 42⇒ "Youlose!" 3⇒ "Youlose!" ………. 57⇒ "Youlose!" 1⇒ "Youlose!"

  11. - - - - -

  12. x =input() if x >=10: if x*200+15 ==267415: bug() else: print "Youlose!" else: print "Youlose!" x <10 x >=10 ??? x >=10 x*200+15 ==267415 x >=10 x*200+15 !=267415

  13. x =input() if x >=10: if x*200+15 ==267415: bug() else: print "Youlose!" else: print "Youlose!" x <10 x >=10 ??? x >=10 x*200+15 ==267415 x >=10 x*200+15 !=267415 1337

  14. - - - - -

  15. - - - - - - - - - - - -

  16. – – – – – –

  17. angr

  18. BinaryLoader Intermediate Representation DataModel Abstraction ProgramAnalysis Core

  19. BinaryLoader Intermediate Representation DataModel Abstraction ProgramAnalysis Core

  20. BinaryLoader Intermediate Representation DataModel Abstraction ProgramAnalysis Core

  21. libVEX x86 AMD64 ARM ARM64 MIPS MIPS64 PPC PPC64

  22. libTCG x86 AMD64 ALPHA CRIS ARM ARM64 68K HPPA MIPS MIPS64 SPARC SH4 PPC PPC64 Unicore32 S390x xTENSA tileGx

  23. BinaryLoader Intermediate Representation DataModel Abstraction ProgramAnalysis Core

  24. (1+2) (𝜋+φ) 2[10..20]

  25. BinaryLoader Intermediate Representation DataModel Abstraction ProgramAnalysis Core

  26. Registers • Memory • Files • OSstate

  27. BinaryLoader Intermediate Representation DataModel Abstraction ProgramAnalysis Core (1+2) (𝜋+φ) 2[10..20] x86 AMD64 ARM ARM64 MIPS MIPS64 PPC PPC64

  28. - - - -

  29. - - - - - - - - - - - -

  30. - - - - - - - - - - - -

  31. - - - -

  32. – – – – – – – state.set_mode(“symbolic”) state.set_mode(“static”) state.set_mode(“fastpath”)

  33. simuvex/s_options.py – –

  34. - - - - - - - - - - - -

  35. - - - - - - - ./setup.sh -i -eangr

  36. - - - - - - - - - - - -

  37. Target program(angr.Project) • Analyses(project.analyses) • - CFG, VFG,BackwardSlice • KnowledgeBase (project.kb) • Functions(project.kb.functions) • Blocks(project.factory.block) • PathGroups(project.factory.path_group) • Paths(path_group.active[0]) angr cle - Loaded binary(project.loader) • SimState(path.state) • SimState Plugins(state.memory, • state.registers) simuvex • Constraint Solver(state.solver) • ASTs(state.registers.rax) claripy

More Related