Guest shot Posted March 7, 2007 Posted March 7, 2007 (edited) I have been trying to do this all day and cannot get it right I have this figured out follow along I hope you can understand this here is a web page I set up as an example http://memberspass.6x.to it requires a username and password combo Username: member Password: password you add these to the url like this to login automatically http://member:password@memberspass.6x.to I separated the parts http:// member : password @ memberspass.6x.to I added :, @, memberspass.6x.to, http:// to .data section like this .data http db "http://",0 sep db ":",0 AT db "@",0 WebPage db "memberspass.6x.to",0 then I added username and password to .data? like this .data? username dd ? password dd ? what I am trying to accomplish is assemble a url with the users input on name and password in two edit boxes and when he/she clicks go it will launch the site and he/she is already in there without login. for example someone enters tommy for username in editbox 1 and stomped for password in editbox 2 those two will be added to a buffer and combined into the url and the url will then be executed using ShellExecute. here is all my sources + an exe (3kb)( I commented the important parts) http://www.sendspace.com/file/ti5rca I just cant get anything I try to work without something having an error thanks to anybody who helps me. Edited March 7, 2007 by shot
yamraaj Posted March 7, 2007 Posted March 7, 2007 You are not concatenating the user name and pass to the url.data?username db 64 dup(?) ;Username will be added secondpassword db 64 dup(?);The password will be added fourthUrl db 128 dup(?)First get the input using GetDlgItemText and then concat theminvoke lstrcpy, addr Url, addr httpinvoke lstrcat, addr Url, addr usernameinvoke lstrcat, addr Url, addr sepinvoke lstrcat, addr Url, addr passwordinvoke lstrcat, addr Url, addr ATinvoke lstrcat, addr Url, addr WebPageinvoke ShellExecute, hWin, addr Operation,addr Url , NULL, NULL, SW_SHOWNORMAL
human Posted March 7, 2007 Posted March 7, 2007 you will gain **** with that:Pwhy?ms**** removed ability to use http://login:pass@host in sp2you can reenable it on your own risk in explorer and ie, just look for solution on google
Guest shot Posted March 8, 2007 Posted March 8, 2007 (edited) @yamraaj thanks for your help I will try it out @human its for firefox only unless patched I just assembled and it works I looked it over and understand exactly how it works(know I feel stupid cause I couldnt figure it out ) I finished the rest of the code and it works thanks again!!! EDIT: would anybody know how to remove "http://" from the site so the user doesn't have to manually delete it? I have it so there is an editbox and you enter the site and "http://" is not allowed or it will fail to open the page I have it so user can click paste and the website is in the editbox is there anyway to scan and remove "http://" ? Edited March 8, 2007 by shot
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now