ravenac95 / sudolikeaboss

Get 1password access from iterm2
http://sudolikeaboss.com
MIT License
1.51k stars 50 forks source link

This is NOT the end of sudolikeaboss #44

Open roodkcab opened 6 years ago

roodkcab commented 6 years ago

It's been a year since last update of this project, I can't use this awesome software with iTerm2, since 1Password team didn't give me any document on developing iTerm2 extension to communicate with 1Password mini. I can't bear it anymore today, and decided to hack 1Password a little to get the job done.

giphy

as u can see, it works with the latest 1Password 6.8.9, but it's really dirty right now... since 1Password force to check signature of browser, I have to inject a dynamic lib into it, to get developer mode on...

Sadly, I don't think it properly to make pull request with sudolikeaboss, the way I achieved to get the job done is to make sudolikeaboss act like Safari browser, which is totally forbidden by 1Password team... I'll make a gist for anyone who interest with this functionality, and thank @ravenac95 for bring us such wonderful software, I love it.

roodkcab commented 6 years ago

I've update my code here, provide a hijack module and put build instruction in README. Happy hacking

mouson commented 6 years ago

@roodkcab Could you help me to install your code ?! I am tried to install your version follow this step:

  1. go get github.com/roodkcab/sudolikeaboss
  2. change iTerm2 profiles keys 「cmd + \」 to Run Coprocess "$GOPATH/bin/sudolikeaboss" $GOPATH is /Users/username/go/bin/sudolikeaboss

  3. when i used 「Cmd + \」, 1Passowrd show error message 'invalid-code-signature-osx/'

and

image

and

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x42ab595]

goroutine 34 [running]:

github.com/roodkcab/sudolikeaboss/vendor/onepass.(*ResponseData).GetPassword(...)

    /Users/mouson/go/src/github.com/roodkcab/sudolikeaboss/vendor/onepass/response.go:117

main.retrievePasswordFromOnepassword(0xc420124040, 0xc420122000)

    /Users/mouson/go/src/github.com/roodkcab/sudolikeaboss/client.go:79 +0x95

created by main.runSudolikeaboss

    /Users/mouson/go/src/github.com/roodkcab/sudolikeaboss/client.go:108 +0xfc
roodkcab commented 6 years ago

@mouson u have to build it from source

1、build the hijack.dylib in hijack directory using

clang -framework AppKit -framework Foundation -o hijack.dylib -dynamiclib hijack.m ./rd_route.c

then start 1password helper in console using

DYLD_INSERT_LIBRARIES=hijack.dylib /Applications/1Password\ 6.app/Contents/Library/LoginItems/2BUA8C4S2C.com.agilebits.onepassword4-helper.app/Contents/MacOS/2BUA8C4S2C.com.agilebits.onepassword4-helper

this will bypass the signature check of 1Password, don't worry, it will not steal your password

2、build sudolikeaboss using make and it'll create binary in _build/amd64/sudolikeaboss

copy that one to your bin path, and execute it like normal

mouson commented 6 years ago

@roodkcab thank you very much!

when i clone 「https://github.com/roodkcab/sudolikeaboss」 and step 1 - 2 DYLD_INSERT_LIBRARIES=... i got message:

image

and step 2 go back to sudolikeaboss folder make i got this error message

image

how to fix that error ? thank again !

roodkcab commented 6 years ago

@mouson what version of go do u use? check it with go version, mine is 1.10.3, if u don't want to upgrade golang, try to move vendor/onepass outside vendor directory, and make again

tettoffensive commented 4 years ago

@roodkcab @ravenac95 Is it the end? Was hoping to use something like this with 1Password 7.4.3

ravenac95 commented 4 years ago

@tettoffensive Unfortunately, I haven't been able to keep the project up. There might be others that have successfully built the project but the latest versions of 1password prevented (rightly so in interest of better security) the use of sudolikeaboss. I do hope that I can come up with something better in the future, but other life responsibilities have taken priority. I will update the readme to reflect that this project is not being maintained. I apologize!

tettoffensive commented 4 years ago

No worries. I think 1Password should make an official terminal client. Would be so useful!

On Sun, Apr 19, 2020 at 11:34 AM Reuven V. Gonzales < notifications@github.com> wrote:

@tettoffensive https://github.com/tettoffensive Unfortunately, I haven't been able to keep the project up. There might be others that have successfully built the project but the latest versions of 1password prevented (rightly so in interest of better security) the use of sudolikeaboss. I do hope that I can come up with something better in the future, but other life responsibilities have taken priority. I will update the readme to reflect that this project is not being maintained. I apologize!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ravenac95/sudolikeaboss/issues/44#issuecomment-616203222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM4RV2GPGYLIYNLZW7PPZTRNM72HANCNFSM4FQRKOBQ .