It is currently Wed Jul 17, 2019 6:05 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Wed Feb 18, 2015 1:26 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi marroh,

Thank you for your comments, they're appreciated.

-----------------------------------------------

Removed two examples:
- TurnPage.pb
- MagnifyingGlass.pb

Added another two examples to the Stuff folder:
- WindowStuff/DisplayStuff
-- Orientation.pb
-- Rotation.pb

DisplayStuff
- Orientation.pb: locks the display orientation on a tablet for the current process
- Rotation.pb: rotates the display to a set orientation

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Feb 24, 2015 2:08 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 31, 2006 4:34 am
Posts: 527
JHPJHP

You've put some good stuff on the forum. Thank you!

Could you possibly check that someone hasn't tampered with your Services_Stuff_Shellhook.zip file?
After my antivirus flagged it. I disabled it and downloaded it anyway. Then I sent it to VirusTotal free online,
https://www.virustotal.com
in which 13 out of 57 indicated virus infected.

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Feb 24, 2015 2:25 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi yrreti,

I've downloaded the ZIP file from the forum and went through the examples, I'm confident nothing has been tampered with.

Some of the examples have been compiled, possibly the reason for the false positives, but the source code is included.
- I precompiled the code for instruction purposes only

Personally I would compile the source code again, replacing existing executables when dealing with downloads from a forum.

Thank you for posting your concerns, I'm security concise myself.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Feb 24, 2015 8:46 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 31, 2006 4:34 am
Posts: 527
Hi JHPJHP
Thanks for re checking it out.
One can never be too careful now days.


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Wed Feb 25, 2015 4:09 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
You're welcome yrreti.

------------------------------------------------

Added another example to the Stuff folder:
- MoreStuff/SetCriticalFlag.pb

If the script is executed with the current settings:
- warns you that the BSOD may occur if you proceed
- notifies you that the critical flag is present
- notifies you that the critical flag is not present
-- this will avoid the BSOD as the process is no longer marked as critical
Code:
SetCriticalFlag(#Null, #True)
SetCriticalFlag(#Null, #False)

If the first parameter is #Null the script uses the current process, otherwise it expects a PID (process ID).

Second parameter options: #True, #False or Excluded (-1).
- #True: sets the critical flag
- #False: removes the critical flag
- Excluded (-1): checks if the critical flag is present

NB*: With the current settings, removing the second call to the Procedure: SetCriticalFlag will cause the BSOD to occur when the process ends.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Thu Oct 01, 2015 5:56 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Added another bunch of examples to the Stuff folder:
- MoreStuff/ConnectUNC.pb
- MoreStuff/FTP/TestFTP.pb
- MoreStuff/GetProductKey.pb
- MoreStuff/MapDrive.pb
- GadgetStuff/ListIconGadget/MultiLine_Image.pb (includes image: shape.ico)

NB*: Applied numerous bug fixes to various examples; includes an update to the "Window Watcher" (shellhook) application, now supporting Windows 10.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Oct 06, 2015 1:46 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Oct 06, 2015 2:56 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Added a new example and updated a couple others from the Stuff folder.
- GadgetStuff/WebGadget/Binaries/baboon.jpg, ball.mp4
- GadgetStuff/WebGadget/ImageSize.pb, VideoInfo.pb
- GadgetStuff/WebGadget/NoScroll.pb

VideoInfo.pb:
- registry is temporarily modified to access HTML5: FEATURE_BROWSER_EMULATION
- supported video formats: http://www.w3schools.com/tags/tag_video.asp
- supported properties: https://msdn.microsoft.com/en-us/library/windows/apps/hh767398.aspx

NB*: Added an "Event Listener" to the VideoInfo.pb example, fixing an issue that occurred when an unsupported file got past the filter.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Oct 13, 2015 7:54 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Oct 06, 2015 3:39 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 14, 2011 6:07 pm
Posts: 341
Thanks a lot for sharing your little jewels :D :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Fri Oct 23, 2015 4:06 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi said,

Thank you for your kind words.

--------------------------------------------------------

Moved the VideoPlayer.pb example and associated binaries to: Embed JS Framework into PureBasic.

--------------------------------------------------------

Updated:
- added 2 examples
-- Stuff\MoreStuff\CPU\GetUsage.pb, GetUsage.ico
-- Stuff\MoreStuff\Download\Download.pb, Download.ico, Download.vbs

GetUsage.pb
- measure CPU usage
- http://www.vbforfree.com/calculate-and-get-the-computers-cpusprocessors-system-usage/

This example was originally written to feed data to the example Flot_RealTime.pb in Embed JS Framework into PureBasic, but the end result didn't work as expected.

Download.pb
- auto-login / download 32bit version of PureBasic (requires authentication)
- http://www.development-lounge.de/viewtopic.php?f=26&t=6686&start=12

Writing this example I assumed it would be similar to using MSXML2.XMLHTTP in VBScript, but my first attempts failed. It wasn't until I found the script by amiga that I realized passing the cookie between sessions and location adjustments were required.

Building URLs is made easier with Fiddler.
- at each authentication step / data required to proceed, record a session revealing the true URL (see Inspectors : Raw tab)

I'm sure many of you have written the VBScript method to download files, but PureBasic (without COMatePLUS) is very different.
- download the package to see a PureBasic version
Code:
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2

Set objHTTP = CreateObject("MSXML2.XMLHTTP")
objHTTP.Open "POST", "http://www.purebasic.com/securedownload/DoLogin.php", False
objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objHTTP.setRequestHeader "Connection", "close"
objHTTP.Send "language=&Login=xxxxxxxx&Password=yyyyyyyy"
objHTTP.Open "GET", "http://www.purebasic.com/securedownload/Transfert.php?Filename=Windows_x86&Version=5_40&LTS=_LTS", False
objHTTP.Send

If objHTTP.Status = 200 Then
   Set objADOStream = CreateObject("ADODB.Stream")
   objADOStream.Open
   objADOStream.Type = adTypeBinary
   objADOStream.Write objHTTP.ResponseBody
   objADOStream.Position = 0
   objADOStream.SaveToFile "Windows_x86_Version_5_40_LTS.exe", adSaveCreateOverWrite
   objADOStream.Close
   Set objADOStream = Nothing
End If
Set objHTTP = Nothing

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Nov 03, 2015 7:11 am, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Fri Oct 23, 2015 1:50 pm 
Offline
User
User

Joined: Wed Mar 27, 2013 11:31 pm
Posts: 34
Hi JHPJHP,

I love your JS-magic for Purebasic. Please take a look at ViewerJS.org, it's a fully independent PDF-viewer and free to use. I tried to connect this with PB. Perhaps you will bring this viewer to PB one day.


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Sat Oct 31, 2015 7:08 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Thank you Hadrianus.
- see: http://www.purebasic.fr/english/viewtopic.php?p=475149#p475149

-------------------------------------------------------

Updated:
- added 1 example
-- Stuff\WindowStuff\GadgetBar\GadgetBar.pb

NB*: Click the window to reveal the "Sliding Gadget-Bar", click it again to hide it.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Nov 03, 2015 5:21 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated and reorganized some of the examples to be more intuitive.
- Stuff\MoreStuff\AWS\AWS.pb has been updated to support both ASCII and Unicode (PureBasic 5.40 LTS)

Amazon Web Services (AWS) - Get Book Information

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sat Sep 24, 2016 9:49 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Tue Nov 03, 2015 4:54 pm 
Offline
User
User

Joined: Wed Aug 06, 2008 8:21 am
Posts: 72
Thx for update! :mrgreen:

_________________
PureBASIC v5.41 LTS , Windows v8.1 x64
Forget UNICODE - Keep it BASIC !


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Fri Jan 15, 2016 8:43 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi marroh,

You're welcome, and thank you for commenting.

--------------------------------------------

Updated:
- renamed, reorganized, and improved many of the "Stuff" examples
- added 3 examples
-- Stuff\EncryptDecrypt\EncryptDecrypt.pb
-- Stuff\OtherStuff\FormatDevice.pb
-- Stuff\ProtocolStuff\Telnet.pb

EncryptDecrypt.pb: Supports both Ascii and Unicode (modified from a larger project).
- in order to enable Decrypt enter JHPJHP in the text-box than press the Clear button

FormatDevice.pb: Format Tracks and File System of various devices.

Telnet.pb
Awhile back I had a contract to write an application where a small part was connecting to a Telnet server to initiate a pre-written recall. Seemingly straight forward I wrote a script using the following documentation, but it kept failing.
- http://www.cs.cf.ac.uk/Dave/Internet/node141.html ("Option Responses" reversed)

It wasn't until I found this script by Xombie that I realized the documentation from the site I was using had the "Option Responses" reversed.

With the script provided by Xombie and the information from the following site I was able to fix the problem.
- http://www.pcmicro.com/netfoss/telnet.html

--------------------------------------------

Updated the examples to be Unicode compliant (enabled by default).

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Services, Stuff, and Shellhook
PostPosted: Mon Sep 26, 2016 12:16 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated:
- added 1 example: Cross-Platform Digital Clock
-- Stuff\DigitalClock\DigitalClock.pb

-----------------------------------------------------------------------------

Updated DigitalClock.pb:
- switch from an ImageGadget to a CanvasGadget
- removed the Titlebar
- added a Context Menu

-----------------------------------------------------------------------------

Updated DigitalClock.pb:
- added transparency (Windows only)
- updated Context Menu
-- Transparent Window
-- Background Color
-- Set Time Format
--- 12 Hour Time
--- 24 Hour Time
-- Exit Digital Clock

Default Settings:
Code:
#CLOCK_SIZE_SMALL         = 0.5
#CLOCK_SIZE_ORIGINAL      = 1
#CLOCK_SIZE_LARGE         = 2

#TIME_FORMAT_12           = 0
#TIME_FORMAT_24           = 1

CLOCK_SIZE.d              = #CLOCK_SIZE_ORIGINAL
BACKGROUND_COLOR          = RGB(0, 0, 0)
TRANSPARENT_WINDOW        = #True
TIME_FORMAT               = #TIME_FORMAT_12

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye