Can I programtically send JSON commands to a SVC page? – DigitalMunition




Can I programtically send JSON commands to a SVC page?

Home Forums Can I programtically send JSON commands to a SVC page?

This topic contains 0 replies, has 1 voice, and was last updated by  BrianMiz 1 month ago.

  • Author
    Posts
  • #146887

    BrianMiz
    Member

    I hope this is the correct sub for this, since this is “white hat hacking” (imo).

    ​

    My job has a horrible, buggy software, which is a simple form sheet where we fill out fields and submit our hours and expenses.

    ​

    An example of a subbmition url (not public, i found it through `inspect element`) is:

    ​

    [`http://timelinx.company.com/TlxMobSvc/TimeLinx-CRM.svc/AddJobEntry?jsonString=[{%22dayStartTime%22:%2206:30%20PM%22,%22ProjectId%22:%22413291%22,%22dayEndTime%22:%2205:30%20AM%22,%22ServiceStartDate%22:%2210/08/2019%22,%22ServiceEndDate%22:%2210/09/2019%22,%22Notes%22:%22%22,%22billingNotes%22:%22%22,%22taskId%22:%2212399763%22,%22CreatedBy%22:%2212328%22,%22duration%22:%2211%22,%22duraOverride%22:%2211%22,%22doNotBill%22:%22false%22,%22travelMiles%22:%220%22,%22travelHours%22:%220%22,%22serviceCat%22:%220%22,%22location%22:%22OnSite%22,%22percentComplete%22:%220%22,%22overridepercComplete%22:%22N%22,%22IsTravelEnabledForCompany%22:%22F%22,%22CompanyId%22:%22123870%22,%22adjustmentDuration%22:%220%22,%22billableDuration%22:%2211%22,%22OTType%22:%22Select%22,%22OTAmt%22:%220%22,%22CompanyBillRate%22:%220.25%22,%22caseId%22:%220%22,%22ServiceTaskID%22:%220%22,%22commId%22:%22%22,%22delFiles%22:%22%22,%22UserIds%22:%22%202222%22}]&_dc=1570833256460`](http://timelinx.company.com/TlxMobSvc/TimeLinx-CRM.svc/AddJobEntry?jsonString=%5B{%22dayStartTime%22:%2206:30%20PM%22,%22ProjectId%22:%2248291%22,%22dayEndTime%22:%2205:30%20AM%22,%22ServiceStartDate%22:%2210/08/2019%22,%22ServiceEndDate%22:%2210/09/2019%22,%22Notes%22:%22%22,%22billingNotes%22:%22%22,%22taskId%22:%22599763%22,%22CreatedBy%22:%221428%22,%22duration%22:%2211%22,%22duraOverride%22:%2211%22,%22doNotBill%22:%22false%22,%22travelMiles%22:%220%22,%22travelHours%22:%220%22,%22serviceCat%22:%220%22,%22location%22:%22OnSite%22,%22percentComplete%22:%220%22,%22overridepercComplete%22:%22N%22,%22IsTravelEnabledForCompany%22:%22F%22,%22CompanyId%22:%2248870%22,%22adjustmentDuration%22:%220%22,%22billableDuration%22:%2211%22,%22OTType%22:%22Select%22,%22OTAmt%22:%220%22,%22CompanyBillRate%22:%220.25%22,%22caseId%22:%220%22,%22ServiceTaskID%22:%220%22,%22commId%22:%22%22,%22delFiles%22:%22%22,%22UserIds%22:%22%201428%22}]&_dc=1570833256460)

    So it contains a JSON String with parameters:

    * dayStartTime:06:30 PM,
    * ProjectId:499291,
    * dayEndTime:05:30 AM,
    * ServiceStartDate:10/08/2019,
    * ServiceEndDate:10/09/2019,
    * Notes:,
    * billingNotes:,
    * taskId:9999,
    * CreatedBy:188828,
    * duration:11,
    * duraOverride:11,
    * doNotBill:false,
    * travelMiles:0,
    * travelHours:0,
    * serviceCat:0,
    * location:OnSite,
    * percentComplete:0,
    * overridepercComplete:N,
    * IsTravelEnabledForCompany:F,
    * CompanyId:12120,
    * adjustmentDuration:0,
    * billableDuration:11,
    * OTType:
    * Select,
    * OTAmt:0,
    * CompanyBillRate:0.25,
    * caseId:0,
    * ServiceTaskID:0,
    * commId:,
    * delFiles:,
    * UserIds: 9998

    ​

    What I would like to do is generate this string programatically and submit the final string instead of having to fill out web forms that are riddled with bugs and sometimes clear (so you have to start over).

    ​

    ​

    Is this possible, and could any of you fine hackers point me in the right direction?

    I am a programmer, but have little knowlage in “hacking” and web apps. So any nuance or advice is appriciated.

You must be logged in to reply to this topic.