Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is NOT the end of sudolikeaboss #44

Open
roodkcab opened this issue Aug 20, 2018 · 8 comments
Open

This is NOT the end of sudolikeaboss #44

roodkcab opened this issue Aug 20, 2018 · 8 comments

Comments

@roodkcab
Copy link
Contributor

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
Copy link
Contributor Author

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

@mouson
Copy link

mouson commented Aug 21, 2018

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

go get github.com/roodkcab/sudolikeaboss

change iTerm2 profiles keys 「cmd + \」 to Run Coprocess "$GOPATH/bin/sudolikeaboss"
$GOPATH is /Users/username/go/bin/sudolikeaboss

  1. 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
Copy link
Contributor Author

roodkcab commented Aug 22, 2018

@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
Copy link

mouson commented Aug 22, 2018

@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
Copy link
Contributor Author

@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
Copy link

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

@ravenac95
Copy link
Owner

@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
Copy link

tettoffensive commented Apr 19, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants