Added User Data / Reserved data , Triggers, and Job Signature.#2
Added User Data / Reserved data , Triggers, and Job Signature.#2Beercow wants to merge 3 commits intogleeda:masterfrom
Conversation
Added User Data / Reserved data , Triggers, and Job Signature.
Added check for multiple triggers so it doesn't error on signature check.
|
The lines that are commented out are there for troubleshooting if need be. |
| self.Minute = struct.unpack("<H", data[14:16])[0] | ||
| self.Second = struct.unpack("<H", data[16:18])[0] | ||
| self.Milliseconds = struct.unpack("<H", data[18:20])[0] | ||
| self.Hour = 00 |
There was a problem hiding this comment.
Because Schedule Star Date and Schedule End Date Do not contain hours, minuts, second and milliseconds. It was added to keep the formating the same without having to write seperate class to handle those dates.
There was a problem hiding this comment.
What you have listed as Scheduled Date is actually two dates consisting of year, month, day, year, month, day.
https://msdn.microsoft.com/en-us/library/cc248290.aspx
misc_python/jobparser.py
Outdated
| lines.append("Trigger Type: {0}\n".format(ttype.rstrip(", "))) | ||
| if self.TriggerSpecific != "": | ||
| lines.append("{0}".format(self.TriggerSpecific)) | ||
| # lines.append("Padding: {0}".format(self.Padding)) |
There was a problem hiding this comment.
Could you remove any comment out code ? Or is there a reason to keep it ?
misc_python/jobparser.py
Outdated
| lines += "User: {0}\n".format(self.User) | ||
| lines += "Comment: {0}\n".format(self.Comment) | ||
| lines += "Scheduled Date: {0}\n".format(self.ScheduledDate) | ||
| # lines += "User Data Size: {0}\n".format(self.UserDataSize) |
There was a problem hiding this comment.
Might as well remove commented out code if not needed.
Removed commented out code.
|
Just curious about an update on this. |
Have not tested with multiple triggers or job file that contains User Data. I did not have job files that contained User Data. Will only print the first trigger if present.