NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 92 93 94 95 96 … 102 Next »
NScriptHelper.dll

 
  • 0 Vote(s) - 0 Average
NScriptHelper.dll
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#11
2019-08-28, 07:22 PM
In the next build, you can use the -service option on NScriptHelper:

dotnet NScriptHelper.dll -service:method=recording.lists&list=pending
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#12
2019-08-28, 07:31 PM
That seems to work quite nicely, and will give advanced users a lot of flexibility
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#13
2019-08-28, 07:31 PM
Yes that would ok that is the same as my python script which works ok. I still hope you don't fully implement sid security I do a lot of debugging of the API in the browser and it would real pain in the butt. Maybe you could have a configurable "permanent" sid we could use without a login that is stored in config.xml, many apps provide an api key like that.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#14
2019-08-28, 07:47 PM
The problem is I can't fully trust where I'm told the request is from. I wouldn't want someone to remotely trick it into thinking it's a local request.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#15
2019-08-28, 07:56 PM
Can you check if the destination is localhost or 127.0.0.1. I know in v4 this was logged

2019-08-18 20:39:29.219 [DEBUG][16] host_callback: localhost:8866

If I was hacking I'd just try the default PIN anyway so maybe add that to rule if you think it is necessary.

If I really wanted to do something with the API have access to the PC I could just edit config.xml and reset the PIN but I could do more damage than that on the PC

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#16
2019-08-28, 09:03 PM
mvallevand Wrote:Can you check if the destination is localhost or 127.0.0.1. I know in v4 this was logged

2019-08-18 20:39:29.219 [DEBUG][16] host_callback: localhost:8866
You'd be surprised just how easy it is to set various headers on web apps to make them think the request is from somewhere else. Knowing more about it now, and looking back at v4, I see some glaring flaws to having this remotely accessible.

Quote:If I really wanted to do something with the API have access to the PC I could just edit config.xml and reset the PIN but I could do more damage than that on the PC
I'm not at all worried about people that are physically on the machine - there is plenty they can do with NextPVR. Like you, I'd be happy for users on local to make calls without a sid... if I was certain they were on the localhost. At this stage I'm not comfortable that they're definitely on localhost.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#17
2019-08-28, 09:14 PM (This post was last modified: 2019-08-28, 09:19 PM by mvallevand.)
Ok but if the pin is 0000 what's the point of this security? Users who access remotely won't be able to use debugging in the browser but I can live with that.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#18
2019-08-28, 09:16 PM
mvallevand Wrote:Ok but if the pin is 0000 what's the point of this security?
I hear you - but if a user is going to allow remote access to there system, they can at least set the PIN and feel relatively safely.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#19
2019-08-28, 09:17 PM
Quote:Users who access remotely won't be able to use debugging in the browser but I can live with that.
What do you mean? If they're logged into the web app (local/remote/wherever), they can try urls without needing a sid (it gets it from the session).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#20
2019-08-28, 09:22 PM
I mean this kind of post that you and I request a lot https://forums.nextpvr.com/showthread.ph...post538897

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  nscripthelper in V7.0.0.241105 PRBUK 3 537 2024-12-17, 10:42 PM
Last Post: mvallevand
  How Run NScriptHelper.dll windows 11 NextPVR V6 bertiverson 3 1,008 2022-10-24, 05:09 PM
Last Post: bertiverson
  Nscripthelper jcjefferies 26 6,685 2021-12-25, 05:35 PM
Last Post: ReplayHarry
  EPG Update via command line nscripthelper failing .net error spe109 8 3,598 2021-04-03, 03:41 PM
Last Post: spe109
  updateepg using NScriptHelper is not allowed after recent V5 release upgrade fwpvr789 5 1,931 2020-06-13, 09:50 PM
Last Post: fwpvr789
  dotnet "C:\PROGRA~1\NextPVR\NScriptHelper.dll" -Rename does not rename pascalb 16 4,194 2020-05-25, 06:47 AM
Last Post: pascalb

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode