programming and OSCP

This topic contains 9 replies, has 7 voices, and was last updated by  blackzero 7 years, 1 month ago.

  • Author
    Posts
  • #7974
     SephStorm 
    Participant

    Just wondering, CBT Nuggets has a python course, could someone get through the OSCP with just python knowledge? And how difficult would it be to go from python to ASM or C/CPP/C#? or other languages required for an infosec career?

  • #50625
     Dark_Knight 
    Participant

    The OSCP will require a lot more than just knowledge of python. At least that was my experience when I did it. Keep in mind that I didn’t know python either.

    As it relates to progressing through languages, I would focus on the fundamentals i.e programming paradigms OOP/Procedural, control structures and so on.

    Once you have mastered that it comes down to syntax and knowing how each language implements a particular concept.

  • #50626
     dynamik 
    Participant

    http://securitytube-training.com/certifications/securitytube-python-scripting-expert/ would be much more applicable than Nuggets.

    +1 to everything DK said

    Once you learn one language, the others get easier because there’s a decent amount of overlap in concepts. Assembly is kind of it’s own beast, but I’ve found that working with Assembly has given me a much better understanding of C.

    In terms of the OSCP, you need more of a handle on memory and CPU operations than Assembly. You can generate all your shellcode with msfpayload/msfencode/msfvenom, but you still need to understand things like buffer overflows and be able to adjust your exploit accordingly.

    SecurityTube’s Assembly and Exploit Dev collections are good supplemental material here. Corelan and The Gray Corner provide a lot of good tutorials as well, but they go well beyond what’s needed for OSCP.

    A scripting language (Python/Ruby), C, and Assembly will provide a nice core skill set. However, depending on which direction you go, other languages may certainly be beneficial, such as C# for Windows development, and a slew of others on the web development side of the fence.

  • #50627
     DragonGorge 
    Participant

    @sephstorm wrote:

    Just wondering, CBT Nuggets has a python course, could someone get through the OSCP with just python knowledge?

    For the OSCP – I felt the ratio of C/Python exploits was pretty even. I didn’t use a single ruby exploit outside of what was in the metasploit framework. Having a strong background in C really helped me when it came to looking at other people’s C code but you might be able to get by with just python.

    I think you’ll end up picking up C & Bash either way. But if you’re at a point where you have to pick/choose, I’d put learning assembly at the bottom of the list.

  • #50628
     Eleven 
    Participant

    You guys are talking about using Metasploit for the OSCP, but I thought that wasn’t allowed?

  • #50629
     hayabusa 
    Participant

    Usage of Metasploit is limited in the EXAM, but there are plenty of times, within the course, where you’ll use it, as well as learning to port existing exploits either to or from Metasploit, to accomplish your goals.

  • #50630
     SephStorm 
    Participant

    @dark_knight wrote:

    The OSCP will require a lot more than just knowledge of python. At least that was my experience when I did it. Keep in mind that I didn’t know python either.

    As it relates to progressing through languages, I would focus on the fundamentals i.e programming paradigms OOP/Procedural, control structures and so on.

    Once you have mastered that it comes down to syntax and knowing how each language implements a particular concept.

    Thats what i’ve determined so far, but im looking for a good resource for learning those concepts in a way that makes sense. I am hoping that the course presents those concepts well, Ive also heard of the learn to code website, perhaps that would be a good option or resource?

  • #50631
     DragonGorge 
    Participant

    @sephstorm wrote:

    I am hoping that the course presents those concepts well, Ive also heard of the learn to code website, perhaps that would be a good option or resource?

    Just my opinion – but if you can get conversant in any of the scripting languages (Python, Bash, Perl, PHP, etc) moving from one to another, as DK suggested, isn’t that much of a leap. If you’re completely new to programming, I’d personally stick with Python. Get yourself a starter book or something that has a exercises and go through the entire book (or as much of it as you can). I’m not talking about the reference type of books, I never found them to be much good at learning a new language.

    One thing about your “hoping the course presents these concepts well” remark – don’t count on Offsec to teach you fundamentals (Python, Bash, SQL, etc). You’ll have to pick up A LOT on your own.

  • #50632
     SephStorm 
    Participant

    Oh I know, thats why im looking outside. 🙂

  • #50633
     blackzero 
    Participant

    I registered for OSCP last Nov just to gauge myself and get the courseware, Now I will be taking exam in Dec and for whole of year I have learnt great deal of stuff. I learnt python, C, ASM, Web application development etc etc..Some of which were no way related to OSCP but what I have come to understand is that you need understanding of bigger picture to be successful at OSCP.
    You don’t have to be C programmer but understand C enough to make changes to existing code which is NOT trivial. You may not need deep understand of Linux OS but enough to successfully escalate privileges. I would say its not about depth but breadth of topics which one must understand is biggest challenge.

    Hope that made sense. 🙂

    Cheers!

You must be logged in to reply to this topic.

Copyright ©2019 Caendra, Inc.

Contact Us

Thoughts, suggestions, issues? Send us an email, and we'll get back to you.

Sending

Sign in with Caendra

Forgot password?Sign up

Forgot your details?