MyEarth Posted October 11, 2015 Share Posted October 11, 2015 Hello guys,I need for work a stripped part of this source:https://github.com/poweradminllc/PAExecNot the entire code or all the parameter avaiable, just:\\{server IP address} -s -d -i -eI have downloaded the code but i really don't have understand the structure, where are the functions related to that parameters. I see some of the function are still present in autoit or UDF so if a kind member what to help me to archive this task i'm very happy and grateful Thanks, for any clarification i'm here Link to comment Share on other sites More sharing options...
JohnOne Posted October 11, 2015 Share Posted October 11, 2015 Your post/question is very poor.The AutoIt translation of the above is.;{server IP address} -s -d -i -e AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Author Share Posted October 11, 2015 You don't have understand. I what to convert the C++ code behind that parameters and use directly in autoit without pass from the binary/cli because i need to make some changes but that's another story. I know how to use a command-line Link to comment Share on other sites More sharing options...
JohnOne Posted October 11, 2015 Share Posted October 11, 2015 So let me get this straight, you want some C++ code converted to AutoIt, but you don't know what that C++ code even is? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Author Share Posted October 11, 2015 (edited) Uh? "Even is"Yes i'd like some C++ code, only a small part of that project, converted to AutoIt. I can manage autoit, study it, understand it, modify it etc. but not C++ since all of my project are written in autoit. I don't understand the other part of the question ( and why you make me so many questions )If noone help me to convert that and it will be strange for this forum i'll use the binary, i don't have many choice... Edited October 11, 2015 by MyEarth Link to comment Share on other sites More sharing options...
JohnOne Posted October 11, 2015 Share Posted October 11, 2015 There is nothing strange, you have not yet asked a real question.Post the code you need translating. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 11, 2015 Developers Share Posted October 11, 2015 I hope you are not asking us to help you rewrite the psexec or PAexec functionality in AutoIt3, or are you?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Author Share Posted October 11, 2015 I'm missing the point, what i'm asking violate any rules of the forum? That code is open-source and the licence allow to make pratically everything. I was intrested only in part of the code based on the parameter on the first post ( i don't what a clone with all the function/parameters ) to convert in autoit but i wasn't possible i'll use the binary, thanks anyway. Link to comment Share on other sites More sharing options...
JohnOne Posted October 11, 2015 Share Posted October 11, 2015 So again, what is the code you want to use? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Author Share Posted October 11, 2015 (edited) I don't know what portion of code is related to a parameter, like -s call func1, -d call func2 and so on. In autoit is easy with $CmdLineRaw or $CmdLine to see what parameter call a function but isn't the same in C++ or in that source so i can't answer to your question. Edited October 11, 2015 by MyEarth Link to comment Share on other sites More sharing options...
Developers Jos Posted October 11, 2015 Developers Share Posted October 11, 2015 It is still unclear what you really want to do with the AutoIt3 code. Maybe you could try to explain what you exactly want to do so we understand your goals?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Author Share Posted October 11, 2015 (edited) Oh, i want to do in autoit the same thing i can do using paexec with that parameter:Launch on remote computer of my office some software ( manteinance, backup and others ) at pre-determinate schedule time, without load the account, with system account privilege, with interaction with the desktop. Actually i'm using the binary from the site put i prefer to have the portion of code used by paexec with -s -d -i -e parameters directly in autoit, for this reason i have ask a conversion from C++ to autoit Edited October 11, 2015 by MyEarth Link to comment Share on other sites More sharing options...
Developers Jos Posted October 11, 2015 Developers Share Posted October 11, 2015 Sigh, so you do want the have this application re-written in AutoIt3!I can't really see why one would want to do that. Just use the available utilities in stead of trying to reinvent the wheel here.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MyEarth Posted October 11, 2015 Author Share Posted October 11, 2015 I think there is a difference between "application totally re-written in AutoIt3" and a "small part of an application re-written in AutoIt3", in the first case i can agree with you but in the second case i don't see what is the problem. There are many examples in this forum can you found on a search engine in other applications/code language/method ( plenty of example/plenty of threads ) so pratically everyone reinvent the wheel here.I hope now i have clear all doubts. If someone what to help to archive the task sharing some of his time/knowledge i'm grateful Link to comment Share on other sites More sharing options...
Developers Jos Posted October 11, 2015 Developers Share Posted October 11, 2015 Happy to share the knowledge i have on this. All you need to do is:Create a program which can be ran on the target host as a service and will be able to shell your commands.Create an RPC call to the target host which will transfer this program and create a service under which it will run.Create a cleanup process for this service and program after you are done.Ensure the whole setup is safe and not creating a backdoor vulnerability. .. or simply use the binaries available you know will work and you simply have to do an Run() or ShellExecute() for, which is my advice to you.Good luck with your endeavor. Jos JohnOne 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
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