403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.208
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/cups/ipptool/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/cups/ipptool/set-attrs-hold.test
# Test print-job and later job-hold-until attribute
{
	# The name of the test...
	NAME "Disable printer..."

	# The resource to use for the POST
	RESOURCE /admin/

	# The operation to use
	OPERATION pause-printer

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR name requesting-user-name $user

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes
}

{
	# The name of the test...
	NAME "Print job"

	# The resource to use for the POST
	# RESOURCE /admin

	# The operation to use
	OPERATION print-job

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR name requesting-user-name $user
	ATTR mimetype document-format application/postscript

	GROUP job
	ATTR integer copies 1

	FILE ../data/testprint.ps

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes

	# What attributes do we expect?
	EXPECT job-id
	EXPECT job-uri
}

{
	# The name of the test...
	NAME "Get job attrs"

	# The resource to use for the POST
	RESOURCE /

	# The operation to use
	OPERATION get-job-attributes

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR integer job-id $job-id

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes

	# What attributes do we expect?
	EXPECT job-state
	EXPECT job-hold-until
}

{
	# The name of the test...
	NAME "Set job attrs with job-hold-until"

	# The resource to use for the POST
	# RESOURCE /admin

	# The operation to use
	OPERATION set-job-attributes

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR integer job-id $job-id
	ATTR name requesting-user-name $user

	GROUP job
	ATTR name job-hold-until 00:30:00

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes
}

{
	# The name of the test...
	NAME "Get job attrs again"

	# The resource to use for the POST
	RESOURCE /

	# The operation to use
	OPERATION get-job-attributes

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR integer job-id $job-id

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes

	# What attributes do we expect?
	EXPECT job-state
	EXPECT job-hold-until
}

{
	# The name of the test...
	NAME "Enable printer..."

	# The resource to use for the POST
	RESOURCE /admin/

	# The operation to use
	OPERATION resume-printer

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR name requesting-user-name $user

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes
}

{
	# The name of the test...
	NAME "Get job attrs (last time)"

	# The resource to use for the POST
	RESOURCE /

	# The operation to use
	OPERATION get-job-attributes

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR integer job-id $job-id

	# What statuses are OK?
	STATUS successful-ok
	STATUS successful-ok-ignored-or-substituted-attributes

	# What attributes do we expect?
	EXPECT job-state
	EXPECT job-hold-until
}

Youez - 2016 - github.com/yon3zu
LinuXploit