Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
marcan42's profile
Hector Martin
Hector Martin
Hector Martin
@marcan42

Tweets

Hector Martin

@marcan42

If it ain't broke, I'll fix it! I'm porting Linux to Apple Silicon Macs at @AsahiLinux. http://patreon.com/marcan  | http://github.com/sponsors/marcan 

Tokyo, Japan
marcan.st
Joined May 2009

Tweets

  • © 2021 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      Yup there we go. Change that point with gdb set, we get a segfault real early in _dl_lookup, so that gets dereferenced by _dl_lookup. smells like a struct to me. Lets go ahead and look up libc's dl_lookup function now to save us some time.pic.twitter.com/JuRFGlwcBJ

      1 reply 0 retweets 2 likes
      Show this thread
    2. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      Wait thats just used to set up the initial linking according to this. Looks like the code exec path is different every time after that, lets take a look at what happens on the second putchar call:https://github.com/lattera/glibc/blob/master/elf/dl-runtime.c …

      1 reply 1 retweet 3 likes
      Show this thread
    3. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      neat. After first call, the .so file is loaded, and the entry in the GOT is just .so-file-base-address + function-offset. leak the GOT entry, you have the .so base. nice. just need to figure out execve's offset relative to putchar, plus set up the stack.pic.twitter.com/2hS8jYzaVt

      2 replies 0 retweets 2 likes
      Show this thread
    4. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      And pivot is successful. Now I just need to get a pointer to a str of "/bin/sh" into r0 and I've got a shell. I'll wrap up tmrw. These take me a while because of the documentation but its a lot of fun. Hope y'all are learning something too!pic.twitter.com/orBYUQGfn0

      2 replies 0 retweets 7 likes
      Show this thread
    5. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      Ok, lets go ahead and wrap this up. Last part is wrapping everything up, and that means we need to actually /call/ execve("/bin/sh"). (icymi, execve = libc func to execute binary in place of current thread). This means we just need to get $eax -> str("/bin/sh") at this point.

      1 reply 0 retweets 0 likes
      Show this thread
    6. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      We have 2 options: 1. ROP, which would def work but finding a gadget to get data out of the BSS and into $eax sounds like a pain. 2. see if we can get the putchar caller to load a full 4 byte word into $eax instead of just 1 byte, like putchar expects. Let's try #2

      1 reply 0 retweets 0 likes
      Show this thread
    7. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      Well, I'm a fool, $eax isn't even the target. Keep forgetting the x86 calling conventions. Arg 1 of a remote call is passed in the stack, not in $eax. That's actually easier to set up, methinks, but I've been looking in the wrong place. There's probably an easier way to do this..pic.twitter.com/HOB2012itE

      1 reply 0 retweets 1 like
      Show this thread
    8. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 21 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      ...but I'm kinda tempted to just see if I can also load an arb stack pointer and get rop of some kind. Let's see where this takes us.

      2 replies 0 retweets 0 likes
      Show this thread
    9. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 22 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      looking at ropgadget --binary bf, (i.e. searching for all rop gadgets in the simple bf interpreter binary) gives a decent selection, but nothing that would give us good stack pointer control, during first look. There are plenty more gadgets in libc, but this is a rookie problem..pic.twitter.com/ZNLEZysrTS

      2 replies 0 retweets 1 like
      Show this thread
    10. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 22 Mar 2018
      • Report Tweet
      • Report NetzDG Violation

      ...which makes me think that there's a good chance that this is definitely not how we're expected to do this. ROP in libc works, sure, but I'd like to figure out what they also expected me to do/find here.

      2 replies 0 retweets 2 likes
      Show this thread
      Hector Martin‏ @marcan42 22 Mar 2018
      • Report Tweet
      • Report NetzDG Violation
      Replying to @hedgeberg

      Sometimes the fun in CTF problems is doing it the way they *didn't* expect you to do it. At last CCC's CTF we solved a challenge1 one way, then challenge2 worked with the exact same code. There was supposed to be an "easier" way for challenge1... but it looked more annoying.

      12:18 AM - 22 Mar 2018
      • 3 Likes
      • Konrad Beckmann hedge.txt | Mostly Inactive, except when not 💖 FlanMaztæ666 💖
      1 reply 0 retweets 3 likes
        1. New conversation
        2. hedge.txt | Mostly Inactive, except when not‏ @hedgeberg 22 Mar 2018
          • Report Tweet
          • Report NetzDG Violation
          Replying to @marcan42

          Yeah, I understand, but the thing is that I know the overarching "more challenging" methods for writing exploits. These are meant to teach tricks 1 by 1 and I'd like to figure out what the tricks are here that I'm missing. At least, I think that's reasonable?

          1 reply 0 retweets 0 likes
        3. Hector Martin‏ @marcan42 22 Mar 2018
          • Report Tweet
          • Report NetzDG Violation
          Replying to @hedgeberg

          Sure, if you're trying to learn; I just find that if I already have a valid (if no "the" intended) solution there's a limit to how much time I'm willing to waste trying to find the "right" way. At some point it's more efficient to just look up a write-up for that.

          1 reply 0 retweets 1 like
        4. Show replies

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2021 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Imprint
        • Cookies
        • Ads info