07 January 2020

ACCA PM Chapter 2 - Target Costing

Target Cost is the maximum cost per unit in order to achieve the required profit.

It is used to compare the estimated actual cost. The excess of the actual cost over the target is called "Target Cost Gap".

Possible ways of attempting to close the target cost gap:

  1. Examine costs to look for cheaper.
  2. Reexamine design of the product, can we reduce cost without needing to reduce the price.


The five major characteristics that distinguish services from manufacturing are:

  1. Intangibility
  2. Inseparability / Simultaneity
  3. Variability / heterogeneity
  4. Perishability
  5. No transfer of ownership

05 January 2020

OSQUERY - Networking Tables

How many network interfaces are present on the machine?
osquery> select * from interface_addresses;

How many DNS servers are configured on the machine?
osquery> select * from dns_resolvers;

208.67.222.222 belongs to OpenDNS.

Which interface is acting as the default gateway for the machine?
osquery> select * from routes;

How many entries are there in the ARP cache?
osquery> select * from arp_cache;

What is the given hostname of the machine?
osquery> select * from etc_hosts;


Source:https://www.attackdefense.com/challengedetails?cid=1044

04 January 2020

ACCA PM Chapter 1 - Activity Based Costing

Overheads = Expenses

In ACCA F2, we probably used only one cost driver (e.g., labor hours) to calculate costs.

Activity-Based Costing (ABC) attempts to absorb overheads in a more accurate (and therefore more useful) way.

The steps to be followed are as follows:
  1. identify the major activities that give rise to overheads (e.g., machining; dispatching of orders)
  2. determine what causes the cost of each activity – the cost driver (e.g., machine hours; the number of dispatch orders)
  3. calculate the total cost for each activity – the cost pool (e.g., total machining costs; total costs of despatch department)
  4. calculate an absorption rate for each cost driver
  5. calculate the total overhead cost for each product manufactured
  6. calculate the overhead cost per unit for each product

02 January 2020

Windows PowerShell Basics and Cmdlets

Commands tried:
cd \
dir
ls
ps

Get Help:
PS C:\> Get-Help
PS C:\> Get-Help *process
PS C:\> Get-Help *alias*

Download and install Help files on your computer:
PS C:\> Update-Help

List all alias you can use:
PS C:\> Get-Alias

Get Help for conceptual topics:
PS C:\> Get-Help Get-Help -Examples | more

Get Help for conceptual topics about alias:
PS C:\> Get-Help about_alias | more

Get Help about Get-Command
PS C:\> Get-Help Get-Command | more

Get all the commands:
PS C:\> Get-Command | more

Get all the commands (cmdlet only)
PS C:\> Get-Command -CommandType cmdlet | more

Get detailed Help about Get-Command:
PS C:\> Get-Help Get-Command -full | more

Get detailed Help about Get-Command (Parameter only):
PS C:\> Get-Help Get-Command -Parameter * | more

Get cmdlet with Name containing process:
PS C:\> Get-Command -CommandType cmdlet -Name *process*

Get cmdlet with Name containing service:
PS C:\> Get-Command -CommandType cmdlet -Name *service*

Measure Object (cmdlet only):
PS C:\> Get-Command -CommandType cmdlet | Measure-Object

Get all Processes:
PS C:\> Get-Process | more

Get all Services:
PS C:\> Get-Service | more

Get Commands with stop as a verb:
PS C:\> Get-Command -Verb stop

Get Commands with start as a verb:
PS C:\> Get-Command -Verb Start

Get Help about Start-Process with examples:
PS C:\> Get-Help Start-Process -Examples | more

Start Notepad:
PS C:\> Start-Process Notepad.exe

Get Help about Stop-Process with examples:
PS C:\> Get-Help Stop-Process -Examples | more

Get processes with name containing notepad:
PS C:\> Get-Process -Name notepad

Stop a process by Id Number:
PS C:\> Stop-Process -Id <Id>

Get a list of HotFix installed:
PS C:\> Get-HotFix

Get Help containing "command":
PS C:\> Get-Help *command*

Get Help about Core Commands (more cmdlets):
PS C:\> Get-Help about_Core_Commands | more


01 January 2020

Insecure Docker Registry I

Docker Registry is the most essential server when it comes to creating a docker environment. It holds all the images which are then pulled by other servers, and then containers get created. Unfortunately, most of the time, the Docker Registry remains unprotected, depending on how people have architected the docker environment.

Run nmap,
root@attackdefense:~# nmap -sV -n -p- 192.127.17.3

SERVICE/VERSION DETECTION:
  -sV: Probe open ports to determine service/version info
HOST DISCOVERY:
  -n/-R: Never do DNS resolution/Always resolve [default: sometimes]
PORT SPECIFICATION AND SCAN ORDER:
-p- to scan ports from 1 through 65535

Scan Results,
PORT     STATE SERVICE VERSION
5000/tcp open  http    Docker Registry (API: 2.0)

Go to docker.com to learn Methods,
https://docs.docker.com/registry/spec/api/

Method Path Entity Description
GET /v2/_catalog Catalog Retrieve a sorted, json list of repositories available in the registry.
GET /v2/<name>/tags/list Tags Fetch the tags under the repository identified by name.

Use curl to retrieve docker image name (repository),
curl http://192.127.17.3:5000/v2/_catalog
curl http://192.127.17.3:5000/v2/alpine/tags/list




Alternatively, using python for loop to automate fetching the repository,
Using requests.get and response.contect from requests library, https://realpython.com/python-requests/
Using json.loads from json library, https://realpython.com/python-json/


Source: attackdefense.com

Intro to ACCA F5 - Performance Management

PM Syllabus
  • Costing techniques
  • Decision-making techniques
  • Budgeting and control
  • Performance management
The Exam
Section A - 15 x 2 marks
Section B - 3 Scenarios x 5 x 2 marks
Section C - 2 x 20 marks.

Computer-based
  • 3 hours 20 minutes
  • Sections A and B - all objective test questions
    • Extra 5 questions (2 marks each) do not count towards the overall mark.
  • Section C - type out full answers using the built-in spreadsheet and word processor
  • Pass mark - 50%

Credit to:

Open Source Information Gathering using Windows Command Line Utilities

 How to Find the Maximum Frame Size Packet needs to be fragmented but DF set, means that the frame is too large to be on the network and ne...