pi-lock | A RFID solution for Access Control and Management | Authorization library
kandi X-RAY | pi-lock Summary
kandi X-RAY | pi-lock Summary
A RFID solution for Access Control and Management. Pi-Lock is an automated door Security System built around the Raspberry Pi. Using a RFID reader and PIN entry system, access to buildings, departments and rooms is controlled in a secure, efficient, and cost-minimizing system.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pi-lock
pi-lock Key Features
pi-lock Examples and Code Snippets
Community Discussions
Trending Discussions on pi-lock
QUESTION
I was trying to run Visual Basic 4 (16-bit) in Windows 3.1 running within DosBox. However it failed to launch with error:
SHARE.exe must be installed in order to run Visual Basic
Some old MS-DOS applications just check for existence of the EXE and it's presence in autoexec.bat, but in this case the EXE exists, but the error still occurs.
Running on Windows 7 32-bit and using a debugger attached to NTVDM.exe I found the following process is used:
- A Temp file is created with GetTempFilename
- Call to LockFile API
- Call to UnlockFile API
When I set a breakpoint at return of LockFile API and faked a faliure (returned false) On Windows 7 I got the same error message "SHARE.exe must be installed in order to run Visual Basic"
However within the VB.exe I can't find any reference to LOCKFILE API, so I suspect NTVDM.exe is translating it somehow.
The APIs that seem potentially related in the import table of VB.exe are:
- Kernel!OPENFILE
- Kernel!_LWRITE
- Kernel!_LREAD
- Kernel!_LOPEN
- Kernel!_LLSEEK
- Kernel!_LCREAT
- Kernel!_LCLOSE
- OLE2!OLELOCKRUNNING
- Kernel!LOCKRESOURCE
- Kernel!LOCKSEGMENT
I am trying to work out how the lock / unlock file test is done so I can try to remediate within DosBox and create my own test program to replicate in C or VB.
...ANSWER
Answered 2019-Jul-15 at 09:07SHARE.exe must be installed in order to run Visual Basic
SHARE.EXE works as Terminate and Stay Resident kind of program. So it existence is not enough. It must be run, to hook into system and intercept some requests.
SHARE.EXE intercepts DOS Interupt (0x21) and DOS Multiplex Interrupt (0x2F).
In 0x21 interrupt code 0x5c handles locking and unlocking files
http://www.techhelpmanual.com/530-dos_fn_5c00h__lock_file_access.html
LockFile 5c00h
Expects:
AX 5c00H
BX file handle
CX:DX file offset from start of file (CX * 65536)+DX
SI:DI length in bytes of region to lock (SI * 65536)+DI
Returns: AX error code if CF is set to CY
This function locks access to a region of the file identified by the file handle in BX. The region of the file that begins at file logical offset CX:DX extending for a length of SI:DI is locked ...
http://www.techhelpmanual.com/531-dos_fn_5c01h__unlock_file_access.html
UnlockFile 5c01h
Expects:
AX 5c01H
BX file handle
CX:DX file offset from start of file (CX * 65536)+DX
SI:DI length in bytes of region to lock (SI * 65536)+DI
Returns: AX error code if CF is set to CY
This function unlocks access to a region of the file which was previously locked...
You could also check 5dh functions marked mostly as internal.
Implementation in Free DOS:
https://sourceforge.net/p/freedos/svn/HEAD/tree/kernel/trunk/kernel/dosfns.c
see DosLockUnlock function
https://sourceforge.net/p/freedos/svn/HEAD/tree/kernel/trunk/share/share.c
Looking at vDos source code could help if you plan to bring this funcionality to Dos Box
https://sourceforge.net/projects/vdos/files/Version%202015.04.10/
However within the VB.exe I can't find any reference to LOCKFILE API
I'm not sure if LockFile
existed in Win16 (probably not), but there is possibility that sharing API is called directly through DOS interrupts.
I suspect NTVDM.exe is translating it somehow
I don't know it for sure, but I would assume that it intercepts DOS interrupts and uses Win32 API calls to simulate needed behavior.
I am trying to work out how the lock / unlock file test is done so I can try to remediate within DosBox and create my own test program to replicate in C or VB
I would try to log INT 21h and INT 2Fh calls in DOS Box.
QUESTION
I'm very new to angular 4 and mongoose and I'm not even positive I'm doing this correctly. I have a page where I list out schools. I'm able to add the schools to the database and when I click on one of the names (school.name
) I have it go to a detail page. I have the route set up like { path: 'api/schools/:id', component: SchoolDetailComponent }
in the html template on the tag I have routerLink="/api/schools/{{school._id}}"
which successfully loads the url http://localhost:3000/api/schools/592641e61e4e76cfda292b4a with the correct id number(obviously specific to any element.) What I'm not sure is how to load the info for that particular element into the detail page.
schools schema:
...ANSWER
Answered 2017-May-25 at 04:43try with activatedRoute.snapshot.params['id'];
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pi-lock
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page